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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 1910753002: Add enablePerThreadHeap flag to ThreadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 7 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/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);
« no previous file with comments | « third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698