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) |