[test] May rarely reach OOM without an aborted scavenge.

Whether the reordered objects fail to fit depends non-deterministically on the parallel worker speeds and the exact contents of new-space that vary with each VM or core library change.

Bug: https://github.com/dart-lang/sdk/issues/52936
Change-Id: I6e287d42b5ca77d2ffafd9a5a053118617d6fe51
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313940
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak 2023-07-24 16:50:48 +00:00 committed by Commit Queue
parent 008cb0bbc1
commit 41548aa698
2 changed files with 0 additions and 12 deletions

View file

@ -147,12 +147,6 @@ main(List<String> argsIn) async {
result.stderr.contains("Unhandled exception:\r\nOut of Memory"),
"Should see the Dart OutOfMemoryError");
// --verbose_gc not available in product mode
if (!new bool.fromEnvironment("dart.vm.product")) {
Expect.isTrue(result.stderr.contains("Aborting scavenge"),
"Should abort scavenge at least once");
}
Expect.isFalse(result.stderr.contains("error: Out of memory"),
"Should not see the C++ OUT_OF_MEMORY()");
}

View file

@ -149,12 +149,6 @@ main(List<String> argsIn) async {
result.stderr.contains("Unhandled exception:\r\nOut of Memory"),
"Should see the Dart OutOfMemoryError");
// --verbose_gc not available in product mode
if (!new bool.fromEnvironment("dart.vm.product")) {
Expect.isTrue(result.stderr.contains("Aborting scavenge"),
"Should abort scavenge at least once");
}
Expect.isFalse(result.stderr.contains("error: Out of memory"),
"Should not see the C++ OUT_OF_MEMORY()");
}