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

Unified Diff: Source/core/platform/chromium/support/Platform.cpp

Issue 100433005: [oilpan] Rename PauseScope to SafePointScope (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years 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: Source/core/platform/chromium/support/Platform.cpp
diff --git a/Source/core/platform/chromium/support/Platform.cpp b/Source/core/platform/chromium/support/Platform.cpp
index e201a7b5c4dc8db4add3ee46e826f795b5de7835..a714434d5092952db0ec1373660624f3d616eeda 100644
--- a/Source/core/platform/chromium/support/Platform.cpp
+++ b/Source/core/platform/chromium/support/Platform.cpp
@@ -36,24 +36,24 @@ namespace WebKit {
static Platform* s_platform = 0;
-void Platform::markCurrentThreadPaused()
+void Platform::enterSafePoint()
{
- // FIXME(oilpan): Calls to mark paused and mark resumed really
+ // FIXME(oilpan): Calls to enterSafePoint and leaveSafePoint really
// should be balanced. At this point they are not for at least the
// webkit_unit_tests.
WebCore::ThreadState* state = WebCore::ThreadState::Current();
- if (!state->isPaused())
- state->paused(WebCore::ThreadState::NoHeapPointersOnStack);
+ if (!state->isInSafePoint())
+ state->enterSafePoint(WebCore::ThreadState::NoHeapPointersOnStack);
}
-void Platform::markCurrentThreadResumed()
+void Platform::leaveSafePoint()
{
- // FIXME(oilpan): Calls to mark paused and mark resumed really
+ // FIXME(oilpan): Calls to enterSafePoint and leaveSafePoint really
// should be balanced. At this point they are not for at least the
// webkit_unit_tests.
WebCore::ThreadState* state = WebCore::ThreadState::Current();
- if (state->isPaused())
- state->resumed();
+ if (state->isInSafePoint())
+ state->leaveSafePoint();
}
void Platform::attachThread(intptr_t* startOfStack)

Powered by Google App Engine
This is Rietveld 408576698