Repro
var l = new List<object>();
for (; ; ) l.Add(new object());
Run the native aot compiled binary with with export DOTNET_GCHeapHardLimit=2000000 set
Actual result
Aborted
Expected result
Process is terminating due to OutOfMemoryException
(Reported by partner team.)
Repro
Run the native aot compiled binary with with
export DOTNET_GCHeapHardLimit=2000000setActual result
AbortedExpected result
Process is terminating due to OutOfMemoryException(Reported by partner team.)