Skip to content

Remove more ZapDisable/ZapRequire references #98569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions eng/pipelines/common/templates/runtimes/run-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ jobs:
- jitstress1_tiered
- jitstress2
- jitstress2_tiered
- zapdisable
- disabler2r
- tailcallstress
${{ if in(parameters.testGroup, 'jitstress-random') }}:
scenarios:
Expand Down Expand Up @@ -507,9 +507,9 @@ jobs:
${{ if in(parameters.testGroup, 'gcstress-extra') }}:
scenarios:
- heapverify1
- gcstress0xc_zapdisable
- gcstress0xc_zapdisable_jitstress2
- gcstress0xc_zapdisable_heapverify1
- gcstress0xc_disabler2r
- gcstress0xc_disabler2r_jitstress2
- gcstress0xc_disabler2r_heapverify1
- gcstress0xc_jitstress1
- gcstress0xc_jitstress2
- gcstress0xc_tailcallstress
Expand Down
8 changes: 4 additions & 4 deletions eng/pipelines/libraries/run-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
- jitstress1_tiered
- jitstress2
- jitstress2_tiered
- zapdisable
- disabler2r
- tailcallstress
${{ if in(parameters.coreclrTestGroup, 'jitstress-random') }}:
scenarios:
Expand Down Expand Up @@ -220,9 +220,9 @@ jobs:
${{ if in(parameters.coreclrTestGroup, 'gcstress-extra') }}:
scenarios:
- heapverify1
- gcstress0xc_zapdisable
- gcstress0xc_zapdisable_jitstress2
- gcstress0xc_zapdisable_heapverify1
- gcstress0xc_disabler2r
- gcstress0xc_disabler2r_jitstress2
- gcstress0xc_disabler2r_heapverify1
- gcstress0xc_jitstress1
- gcstress0xc_jitstress2
- gcstress0xc_jitminopts_heapverify1
Expand Down
9 changes: 4 additions & 5 deletions src/coreclr/scripts/superpmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def add_core_root_arguments(parser, build_type_default, build_type_help):
collect_parser.add_argument("-output_mch_path", help="Location to place the final MCH file. Default is a constructed file name in the current directory.")
collect_parser.add_argument("--merge_mch_files", action="store_true", help="Merge multiple MCH files. Use the -mch_files flag to pass a list of MCH files to merge.")
collect_parser.add_argument("-mch_files", metavar="MCH_FILE", nargs='+', help="Pass a sequence of MCH files which will be merged. Required by --merge_mch_files.")
collect_parser.add_argument("--use_zapdisable", action="store_true", help="Sets DOTNET_ZapDisable=1 and DOTNET_ReadyToRun=0 when doing collection to cause NGEN/ReadyToRun images to not be used, and thus causes JIT compilation and SuperPMI collection of these methods.")
collect_parser.add_argument("--disable_r2r", action="store_true", help="Sets DOTNET_ReadyToRun=0 when doing collection to cause ReadyToRun images to not be used, and thus causes JIT compilation and SuperPMI collection of these methods.")
collect_parser.add_argument("--tiered_compilation", action="store_true", help="Sets DOTNET_TieredCompilation=1 when doing collections.")
collect_parser.add_argument("--tiered_pgo", action="store_true", help="Sets DOTNET_TieredCompilation=1 and DOTNET_TieredPGO=1 when doing collections.")
collect_parser.add_argument("--ci", action="store_true", help="Special collection mode for handling zero-sized files in Azure DevOps + Helix pipelines collections.")
Expand Down Expand Up @@ -842,8 +842,7 @@ def __collect_mc_files__(self):
else:
dotnet_env["TieredCompilation"] = "0"

if self.coreclr_args.use_zapdisable:
dotnet_env["ZapDisable"] = "1"
if self.coreclr_args.disable_r2r:
dotnet_env["ReadyToRun"] = "0"

logging.debug("Starting collection.")
Expand Down Expand Up @@ -4603,9 +4602,9 @@ def verify_base_diff_args():
"Unable to set clean.")

coreclr_args.verify(args,
"use_zapdisable",
"disable_r2r",
lambda unused: True,
"Unable to set use_zapdisable")
"Unable to set disable_r2r")

coreclr_args.verify(args,
"tiered_compilation",
Expand Down
6 changes: 3 additions & 3 deletions src/libraries/sendtohelixhelp.proj
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
'$(Scenario)' == 'gcstress0x3' or
'$(Scenario)' == 'gcstress0xc' or
'$(Scenario)' == 'heapverify1' or
'$(Scenario)' == 'gcstress0xc_zapdisable' or
'$(Scenario)' == 'gcstress0xc_zapdisable_jitstress2' or
'$(Scenario)' == 'gcstress0xc_zapdisable_heapverify1' or
'$(Scenario)' == 'gcstress0xc_disabler2r' or
'$(Scenario)' == 'gcstress0xc_disabler2r_jitstress2' or
'$(Scenario)' == 'gcstress0xc_disabler2r_heapverify1' or
'$(Scenario)' == 'gcstress0xc_jitstress1' or
'$(Scenario)' == 'gcstress0xc_jitstress2' or
'$(Scenario)' == 'gcstress0xc_jitminopts_heapverify1'">06:00:00</_workItemTimeout>
Expand Down
6 changes: 0 additions & 6 deletions src/tests/Common/CLRTest.CrossGen.targets
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ if [ ! -z ${RunCrossGen2+x} ]%3B then
fi
ReleaseLock
fi

export DOTNET_ZapRequire=$(ZapRequire)
export DOTNET_ZapRequireList=$(AssemblyName)
fi
]]>
</CrossgenBashScript>
Expand Down Expand Up @@ -339,9 +336,6 @@ if defined RunCrossGen2 (
ECHO R2RDump failed with exitcode - !R2RDumpStatus!
Exit /b 1
)

set DOTNET_ZapRequire=$(ZapRequire)
set DOTNET_ZapRequireList=$(AssemblyName)
)
]]>
</CrossgenBatchScript>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class CoreClrConfigurationDetection
public static bool IsJitStressRegs => !string.Equals(GetEnvironmentVariableValue("JitStressRegs"), "0", StringComparison.InvariantCulture);
public static bool IsJitMinOpts => string.Equals(GetEnvironmentVariableValue("JITMinOpts"), "1", StringComparison.InvariantCulture);
public static bool IsTailCallStress => string.Equals(GetEnvironmentVariableValue("TailcallStress"), "1", StringComparison.InvariantCulture);
public static bool IsZapDisable => string.Equals(GetEnvironmentVariableValue("ZapDisable"), "1", StringComparison.InvariantCulture);
public static bool IsDisableR2R => string.Equals(GetEnvironmentVariableValue("ReadyToRun"), "0", StringComparison.InvariantCulture);
public static bool IsGCStress3 => CompareGCStressModeAsLower(GetEnvironmentVariableValue("GCStress"), "0x3", "3");
public static bool IsGCStressC => CompareGCStressModeAsLower(GetEnvironmentVariableValue("GCStress"), "0xC", "C");

Expand All @@ -29,7 +29,7 @@ public static class CoreClrConfigurationDetection

public static bool IsStressTest =>
IsGCStress ||
IsZapDisable ||
IsDisableR2R ||
IsTailCallStress ||
IsJitStressRegs ||
IsJitStress ||
Expand Down
4 changes: 2 additions & 2 deletions src/tests/Common/XUnitWrapperGenerator/RuntimeTestModes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public enum RuntimeTestModes
JitMinOpts = 1 << 3, // DOTNET_JITMinOpts is set.
TailcallStress = 1 << 4, // DOTNET_TailcallStress is set.

// ZapDisable says to not use NGEN or ReadyToRun images.
// DisableR2R says to not use ReadyToRun images.
// This means we JIT everything.
ZapDisable = 1 << 5, // DOTNET_ZapDisable is set.
DisableR2R = 1 << 5, // DOTNET_ReadyToRun=0

// GCStress3 forces a GC at various locations, typically transitions
// to/from the VM from managed code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,9 @@ private static ImmutableArray<ITestInfo> DecorateWithSkipOnCoreClrConfiguration(
{
conditions.Add($"!{ConditionClass}.IsTailcallStress");
}
if (skippedTestModes.HasFlag(Xunit.RuntimeTestModes.ZapDisable))
if (skippedTestModes.HasFlag(Xunit.RuntimeTestModes.DisableR2R))
{
conditions.Add($"!{ConditionClass}.IsZapDisable");
conditions.Add($"!{ConditionClass}.IsDisableR2R");
}

if (skippedTestModes.HasFlag(Xunit.RuntimeTestModes.AnyGCStress))
Expand Down
9 changes: 4 additions & 5 deletions src/tests/Common/testenvironment.proj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
DOTNET_JitStressRegs;
DOTNET_TailcallStress;
DOTNET_ReadyToRun;
DOTNET_ZapDisable;
DOTNET_TC_OnStackReplacement;
DOTNET_TC_QuickJitForLoops;
DOTNET_TC_OnStackReplacement_InitialCounter;
Expand Down Expand Up @@ -207,11 +206,11 @@
<TestEnvironment Include="gcstress0x3" GCStress="0x3" />
<TestEnvironment Include="gcstress0xc" GCStress="0xC" />
<TestEnvironment Include="gcstress0xf" GCStress="0xF" />
<TestEnvironment Include="zapdisable" ZapDisable="1" ReadyToRun="0" />
<TestEnvironment Include="disabler2r" ReadyToRun="0" />
<TestEnvironment Include="heapverify1" HeapVerify="1" />
<TestEnvironment Include="gcstress0xc_zapdisable" GCStress="0xC" ZapDisable="1" ReadyToRun="0" />
<TestEnvironment Include="gcstress0xc_zapdisable_jitstress2" GCStress="0xC" ZapDisable="1" ReadyToRun="0" JitStress="2" />
<TestEnvironment Include="gcstress0xc_zapdisable_heapverify1" GCStress="0xC" ZapDisable="1" ReadyToRun="0" HeapVerify="1" />
<TestEnvironment Include="gcstress0xc_disabler2r" GCStress="0xC" ReadyToRun="0" />
<TestEnvironment Include="gcstress0xc_disabler2r_jitstress2" GCStress="0xC" ReadyToRun="0" JitStress="2" />
<TestEnvironment Include="gcstress0xc_disabler2r_heapverify1" GCStress="0xC" ReadyToRun="0" HeapVerify="1" />
<TestEnvironment Include="gcstress0xc_jitstress1" GCStress="0xC" JitStress="1" />
<TestEnvironment Include="gcstress0xc_jitstress2" GCStress="0xC" JitStress="2" />
<TestEnvironment Include="gcstress0xc_tailcallstress" GCStress="0xC" TailcallStress="1" />
Expand Down
5 changes: 0 additions & 5 deletions src/tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@
<ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
</PropertyGroup>

<!-- Set default ZapRequire level (used only when CrossGen is enabled) -->
<PropertyGroup>
<ZapRequire Condition="'$(ZapRequire)' == ''">2</ZapRequire>
</PropertyGroup>

<!-- Don't append the RID to the output path for our test tree. Our test builds are already separated by RID
and including the RID breaks some of our glob expressions in issues.targets -->
<PropertyGroup>
Expand Down
4 changes: 0 additions & 4 deletions src/tests/JIT/Regression/Dev11/External/Dev11_243742/app.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

/*
* Regression test for Dev11 243742 [Triton]
* precommands:
* set DOTNET_ZAPREQUIRE=2
* set CORECLR_PREJITType=MDIL
* del /q nitype.signal
*
* Execute:
* %CORE_ROOT%\fxprun.exe App.exe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<!-- Needed for mechanical merging of all remaining tests, this particular project may not actually need process isolation -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<ZapRequire>1</ZapRequire>
<CLRTestPriority>1</CLRTestPriority>

<!-- This is an explicit crossgen test -->
Expand Down