Open v-wenyuxu opened 1 year ago
Failed again:
Maybe a different failure mode? Out of memory:
10:58:58.263 Running test: JIT/jit64/opt/cse/HugeArray1/HugeArray1.cmd
Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[HugeArray1]CseTest.Test_Main.TestEntryPoint()'
---> System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at System.Runtime.InteropServices.Marshal.AllocHGlobal(IntPtr cb)
at Internal.JitInterface.CorInfoImpl._allocateArray(IntPtr thisHandle, IntPtr* ppException, UIntPtr cBytes) in /_/src/coreclr/tools/Common/JitInterface/CorInfoImpl_generated.cs:line 1602
--- End of inner exception stack trace ---
at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL methodIL) in /_/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs:line 383
at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs:line 659
at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs:line 841
at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOnThread|4(Int32 compilationThreadId) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs:line 775
at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompilationThread|3(Object objThreadId) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs:line 753
at System.Threading.Thread.StartCallback()
@dotnet/crossgen-contrib @dotnet/jit-contrib
We can try another pass to see how to reduce Crossgen2 memory footprint but there will always be a limit to what we can compile within the 32-bit x86 address space.
The failures seem pretty pervasive in recent pipeline runs:
https://dev.azure.com/dnceng-public/public/_build/results?buildId=267865&view=ms.vss-test-web.build-test-results-tab https://dev.azure.com/dnceng-public/public/_build/results?buildId=267863&view=ms.vss-test-web.build-test-results-tab
Failed in: runtime-coreclr outerloop 20230503.8
Failed tests:
Error message:
Stack trace: