Skip to content

GC.GetGeneration test fails under R2R with JitStressRegs=2 #132291

Description

@dhartglassMSFT

(from copilot):

GC.GetGeneration test fails under R2R with JitStressRegs=2

Build information

Configuration

  • OS: Azure Linux 3
  • Architecture: x64
  • Runtime configuration: Checked
  • ReadyToRun: Crossgen2 (RunCrossGen2=1)
  • JIT stress mode: DOTNET_JitStressRegs=2
  • Test run: R2R-CG2 linux x64 Checked jitstressregs2 @ AzureLinux.3.Amd64.Open

Failure

GC/API/GC/GetGeneration/GetGeneration.dll fails when run from the R2R-CG2 test suite with register stress enabled. The object test passes, but the array test observes generation 0 both before and after a full collection. The test expects the array's generation to increase.

Relevant Helix log:

+ export RunCrossGen2=1
+ RunCrossGen2=1

export DOTNET_JitStressRegs=2

03:34:03.426 Running test: GC/API/GC/GetGeneration/GetGeneration.dll
ObjectTest Passed!
0 0
arrayTest Failed!
failTest Passed!

Test for GetGeneration() FAILED!
Xunit.Sdk.EqualException: Assert.Equal() Failure: Values differ
Expected: 100
Actual:   1
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 102
   at Program.<<Main>$>g__TestExecutor26|0_27(StreamWriter tempLogSw, StreamWriter statsCsvSw, StreamWriter outOfProcessPlanWriter, <>c__DisplayClass0_0&)
03:34:03.645 Failed test: GC/API/GC/GetGeneration/GetGeneration.dll

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions