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

Unified Diff: third_party/WebKit/Source/platform/WaitableEvent.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/platform/WaitableEvent.cpp
diff --git a/third_party/WebKit/Source/platform/WaitableEvent.cpp b/third_party/WebKit/Source/platform/WaitableEvent.cpp
index 9bb284310ebb9fc30a1246899bcefe252a55585d..d06e20b32f8995ecaa2c903a4597815bf8d23609 100644
--- a/third_party/WebKit/Source/platform/WaitableEvent.cpp
+++ b/third_party/WebKit/Source/platform/WaitableEvent.cpp
@@ -30,15 +30,7 @@ void WaitableEvent::reset() {
}
void WaitableEvent::wait() {
- if (ThreadState::current()) {
- // We only enter a safe point scope if the thread is attached, ex. never
- // during shutdown.
- // TODO(esprehn): Why can't SafePointScope do this for us?
- SafePointScope scope(BlinkGC::HeapPointersOnStack);
- m_impl->Wait();
- } else {
- m_impl->Wait();
- }
+ m_impl->Wait();
}
void WaitableEvent::signal() {

Powered by Google App Engine
This is Rietveld 408576698