| Index: third_party/WebKit/Source/platform/heap/ThreadState.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| index 82c9934c2e3f2b3ed0e776c1319bdde581804633..f7091537aa57ef3e1eab05b0c588b3819aa1a74e 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
|
| @@ -249,9 +249,7 @@ class PLATFORM_EXPORT ThreadState {
|
|
|
| // Support for disallowing allocation. Mainly used for sanity
|
| // checks asserts.
|
| - bool isAllocationAllowed() const {
|
| - return !isAtSafePoint() && !m_noAllocationCount;
|
| - }
|
| + bool isAllocationAllowed() const { return !m_noAllocationCount; }
|
| void enterNoAllocationScope() { m_noAllocationCount++; }
|
| void leaveNoAllocationScope() { m_noAllocationCount--; }
|
| bool isWrapperTracingForbidden() { return isMixinInConstruction(); }
|
| @@ -333,7 +331,6 @@ class PLATFORM_EXPORT ThreadState {
|
| // Mark current thread as running inside safepoint.
|
| void enterSafePoint(BlinkGC::StackState, void*);
|
| void leaveSafePoint();
|
| - bool isAtSafePoint() const { return m_atSafePoint; }
|
|
|
| void addInterruptor(std::unique_ptr<BlinkGCInterruptor>);
|
|
|
| @@ -639,7 +636,6 @@ class PLATFORM_EXPORT ThreadState {
|
|
|
| void* m_safePointScopeMarker;
|
| Vector<Address> m_safePointStackCopy;
|
| - bool m_atSafePoint;
|
| Vector<std::unique_ptr<BlinkGCInterruptor>> m_interruptors;
|
| bool m_sweepForbidden;
|
| size_t m_noAllocationCount;
|
|
|