commit | f27d705c56713f4b4d294ac63e17eb3b6fb255db | [log] [tgz] |
---|---|---|
author | Ryan Macnak <rmacnak@google.com> | Wed Jun 03 21:00:10 2020 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed Jun 03 21:00:10 2020 +0000 |
tree | 6788de8518879e7ada88a66ca4f65fbdddf7dd50 | |
parent | d6595b3f7c668c20855e9ec45f70a45a8d2c08a5 [diff] |
[vm, gc] Use the standard out-of-memory message when the scavenger fails to copy. Bug: b/155227688 Change-Id: I865f4abaf82469c89739f3effeb0a4683ceb2686 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149900 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
diff --git a/runtime/vm/heap/scavenger.cc b/runtime/vm/heap/scavenger.cc index 3c73a1e..dcd9f18 100644 --- a/runtime/vm/heap/scavenger.cc +++ b/runtime/vm/heap/scavenger.cc
@@ -278,7 +278,7 @@ // To-space was exhausted by fragmentation and old-space could not // grow. if (UNLIKELY(new_addr == 0)) { - FATAL("Failed to allocate during scavenge"); + OUT_OF_MEMORY(); } } }