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

Unified Diff: src/allocation-inl.h

Issue 3601010: [Isolates] Allow running multiple isolates in shell and use this in tests. (Closed)
Patch Set: Created 10 years, 2 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
Index: src/allocation-inl.h
diff --git a/src/allocation-inl.h b/src/allocation-inl.h
index 01611d50b551b2124b1208b21f253f8733693551..80b35fde2c1b9b747d4ac1d536ad2bb85288dc0b 100644
--- a/src/allocation-inl.h
+++ b/src/allocation-inl.h
@@ -58,7 +58,11 @@ NativeAllocationChecker::~NativeAllocationChecker() {
bool NativeAllocationChecker::allocation_allowed() {
+#ifdef DEBUG
return Isolate::Current()->allocation_disallowed() == 0;
+#else
+ return true;
+#endif // DEBUG
}

Powered by Google App Engine
This is Rietveld 408576698