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

Unified Diff: Source/core/xmlhttprequest/XMLHttpRequest.cpp

Issue 1237063002: Allocate XMLHttpRequest on the eagerly finalized heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add macro for testing eager finalization Created 5 years, 5 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 | « Source/core/xmlhttprequest/XMLHttpRequest.h ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xmlhttprequest/XMLHttpRequest.cpp
diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/Source/core/xmlhttprequest/XMLHttpRequest.cpp
index 239b35139a9d28652532e21320bec285f22c2ebf..23a3ec5b64f1be5377d2d693bcbdaac11c7ac66a 100644
--- a/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -224,6 +224,11 @@ XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri
#ifndef NDEBUG
xmlHttpRequestCounter.increment();
#endif
+#if ENABLE(ASSERT) && !ENABLE(OILPAN)
+ // Verify that this object was allocated on the 'eager' heap.
+ // (this check comes 'for free' with Oilpan enabled.)
+ ASSERT(IS_EAGERLY_FINALIZED());
+#endif
}
XMLHttpRequest::~XMLHttpRequest()
« no previous file with comments | « Source/core/xmlhttprequest/XMLHttpRequest.h ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698