| Index: third_party/WebKit/Source/platform/heap/HeapTest.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
|
| index 9b6cca4f92b723061240fcf2c7decbb428136774..32afcf147f5b4b9682c3c759654daf21e0ac98c0 100644
|
| --- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
|
| @@ -525,7 +525,7 @@ protected:
|
| void runThread() override
|
| {
|
| OwnPtr<GlobalIntWrapperPersistent> longLivingPersistent;
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
|
|
| longLivingPersistent = createGlobalPersistent(0x2a2a2a2a);
|
| int gcCount = 0;
|
| @@ -584,7 +584,7 @@ public:
|
| private:
|
| void runThread() override
|
| {
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
|
|
| int gcCount = 0;
|
| while (!done()) {
|
| @@ -678,7 +678,7 @@ protected:
|
|
|
| void runThread() override
|
| {
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
|
|
| PersistentChain::create(100);
|
|
|
| @@ -4720,7 +4720,7 @@ public:
|
| private:
|
| static void sleeperMainFunc()
|
| {
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
| s_sleeperRunning = true;
|
|
|
| // Simulate a long running op that is not entering a safepoint.
|
| @@ -5405,7 +5405,7 @@ private:
|
| {
|
| MutexLocker locker(workerThreadMutex());
|
|
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
|
|
| {
|
| // Create a worker object that is not kept alive except the
|
| @@ -5526,7 +5526,7 @@ private:
|
| {
|
| MutexLocker locker(workerThreadMutex());
|
|
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
|
|
| {
|
| Persistent<WeakCollectionType> collection = allocateCollection();
|
| @@ -5687,7 +5687,7 @@ private:
|
| static void workerThreadMain()
|
| {
|
| MutexLocker locker(workerThreadMutex());
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
|
|
| DestructorLockingObject* dlo = DestructorLockingObject::create();
|
| ASSERT_UNUSED(dlo, dlo);
|
| @@ -6376,7 +6376,7 @@ void workerThreadMainForCrossThreadWeakPersistentTest(DestructorLockingObject**
|
| {
|
| // Step 2: Create an object and store the pointer.
|
| MutexLocker locker(workerThreadMutex());
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
| *object = DestructorLockingObject::create();
|
| wakeMainThread();
|
| parkWorkerThread();
|
| @@ -6500,7 +6500,7 @@ public:
|
| private:
|
| void runThread() override
|
| {
|
| - ThreadState::attachCurrentThread();
|
| + ThreadState::attachCurrentThread(false);
|
| EXPECT_EQ(42, threadSpecificIntWrapper().value());
|
| ThreadState::detachCurrentThread();
|
| atomicDecrement(&m_threadsToFinish);
|
|
|