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

Unified Diff: Source/web/WebHeap.cpp

Issue 543603003: Oilpan: Expose Heap::collectGarbage to the web layer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | « no previous file | public/web/WebHeap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebHeap.cpp
diff --git a/Source/web/WebHeap.cpp b/Source/web/WebHeap.cpp
index d814b2dca22a295a8c0fda0b5f7adc9fa63ac4d7..8445c7158839d36cfe50a34a4f8404efa7e69d2e 100644
--- a/Source/web/WebHeap.cpp
+++ b/Source/web/WebHeap.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "public/web/WebHeap.h"
-#include "platform/heap/ThreadState.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -45,4 +45,14 @@ WebHeap::SafePointScope::~SafePointScope()
ThreadState::current()->leaveSafePoint();
}
+void WebHeap::collectGarbageForTesting()
+{
+ Heap::collectGarbage(ThreadState::HeapPointersOnStack);
+}
+
+void WebHeap::collectAllGarbageForTesting()
+{
+ Heap::collectAllGarbage();
+}
+
} // namespace blink
« no previous file with comments | « no previous file | public/web/WebHeap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698