Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Disable hugeexpr1 test under JitStress modes #8830

Merged
merged 1 commit into from
Jan 9, 2017
Merged

Disable hugeexpr1 test under JitStress modes #8830

merged 1 commit into from
Jan 9, 2017

Conversation

RussKeldorph
Copy link

This test runs out of memory on x86 when its huge expressions combine with
STRESS_CLONE_EXPR. In this case, the "OptimizationSensitive" label isn't ideal,
but the meaning is what we need--don't run this under JitStress modes.
Unfortunately, we don't have a good way to disable this only when x86 is
running with JitStress, so we lose other architectures under JitStress as well.

@RussKeldorph
Copy link
Author

@dotnet-bot test Windows_NT x86 Checked jitstress2

@RussKeldorph
Copy link
Author

@pgavlin PTAL
/cc @dotnet/jit-contrib

@@ -30,6 +30,9 @@
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup>
<JitOptimizationSensitive>true</JitOptimizationSensitive>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make this <JitOptimizationSensitive Condition="'$(Platform)' == 'x86'">true</JitOptimizationSensitive> in order to disable this for x86 only.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but that assumes that the build architecture matches the execution architecture. This has caused confusion in the past since we don't support end-to-end test build+run on all platforms. Like #6680. In this case, you might get away with it if people only use x86 builds to test 32-bit platforms, but the reward doesn't justify the risk to me. Do you still think it's worth changing?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you still think it's worth changing?

Absolutely. We should not be a build targeted at architecture X on architecture Y; we should instead be cross-compiling as appropriate.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I don't have a strong opinion. Deferring to yours. PTAL.

This test runs out of memory on x86 when its huge expressions combine with
STRESS_CLONE_EXPR.  In this case, the "OptimizationSensitive" label isn't ideal,
but the meaning is what we need: don't run this under JitStress modes.
This is disabled at build time for x86, which means that if x64-built tests are
run on other architectures, e.g. ARM or ARM64, this change won't take effect.
@RussKeldorph
Copy link
Author

@dotnet-bot test Windows_NT x86 Checked jitstress2

@RussKeldorph RussKeldorph merged commit ee20dca into dotnet:master Jan 9, 2017
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
@RussKeldorph RussKeldorph deleted the hugeexprx86 branch May 1, 2019 20:50
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Disable hugeexpr1 test under JitStress modes

Commit migrated from dotnet/coreclr@ee20dca
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants