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

Unified Diff: third_party/WebKit/Source/web/WebHeap.cpp

Issue 2688383003: Remove unnecessary SafePointScope (Closed)
Patch Set: temp Created 3 years, 10 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: third_party/WebKit/Source/web/WebHeap.cpp
diff --git a/third_party/WebKit/Source/web/WebHeap.cpp b/third_party/WebKit/Source/web/WebHeap.cpp
index 151dadc337a0771075a823f5664b7417f10a54f9..99925fe017100aa106cabda6dc471691d9fb62af 100644
--- a/third_party/WebKit/Source/web/WebHeap.cpp
+++ b/third_party/WebKit/Source/web/WebHeap.cpp
@@ -34,15 +34,6 @@
namespace blink {
-WebHeap::SafePointScope::SafePointScope() {
- CHECK(!ThreadState::current()->isAtSafePoint());
- ThreadState::current()->enterSafePoint(BlinkGC::HeapPointersOnStack, this);
-}
-
-WebHeap::SafePointScope::~SafePointScope() {
- ThreadState::current()->leaveSafePoint();
-}
-
void WebHeap::collectGarbageForTesting() {
ThreadState::current()->collectGarbage(
BlinkGC::HeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC);
« no previous file with comments | « third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp ('k') | third_party/WebKit/public/web/WebHeap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698