Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: runtime/vm/pages.cc

Issue 2995063002: [VM-GC] Add a flag to abort on allocation failure (Closed)
Patch Set: Explain flag use better Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flag_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.cc
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
index 4fe574528cff94891fd3508661113820b58f04d5..2138dd911fec16d6fe8ab529e1455c0f43a5db67 100644
--- a/runtime/vm/pages.cc
+++ b/runtime/vm/pages.cc
@@ -232,6 +232,7 @@ HeapPage* PageSpace::AllocatePage(HeapPage::PageType type) {
kVmNameSize);
HeapPage* page = HeapPage::Allocate(kPageSizeInWords, type, vm_name);
if (page == NULL) {
+ RELEASE_ASSERT(!FLAG_abort_on_oom);
return NULL;
}
« no previous file with comments | « runtime/vm/flag_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698