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

Unified Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.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
« no previous file with comments | « third_party/WebKit/Source/platform/WaitableEvent.cpp ('k') | third_party/WebKit/Source/web/WebHeap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
index d6b944a3ff19bd23d913db03c023773b31a79f99..c333accca322d8bfb4e0e6139d61e59d9bad1973 100644
--- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
+++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
@@ -39,11 +39,8 @@ WebThreadSupportingGC::WebThreadSupportingGC(const char* name,
}
WebThreadSupportingGC::~WebThreadSupportingGC() {
- if (ThreadState::current() && m_owningThread) {
- // WebThread's destructor blocks until all the tasks are processed.
- SafePointScope scope(BlinkGC::HeapPointersOnStack);
- m_owningThread.reset();
- }
+ // WebThread's destructor blocks until all the tasks are processed.
+ m_owningThread.reset();
}
void WebThreadSupportingGC::initialize() {
« no previous file with comments | « third_party/WebKit/Source/platform/WaitableEvent.cpp ('k') | third_party/WebKit/Source/web/WebHeap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698