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

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

Issue 1919793002: Revert of Add enablePerThreadHeap flag to ThreadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 33fc012fda391c2e0a6e07dd9b81f442c57162f0..69bd7ef9b8ed7af7e59e385809d0d703b6f8811f 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -520,7 +520,7 @@
void runThread() override
{
OwnPtr<GlobalIntWrapperPersistent> longLivingPersistent;
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
longLivingPersistent = createGlobalPersistent(0x2a2a2a2a);
int gcCount = 0;
@@ -579,7 +579,7 @@
private:
void runThread() override
{
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
int gcCount = 0;
while (!done()) {
@@ -673,7 +673,7 @@
void runThread() override
{
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
PersistentChain::create(100);
@@ -4730,7 +4730,7 @@
private:
static void sleeperMainFunc()
{
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
s_sleeperRunning = true;
// Simulate a long running op that is not entering a safepoint.
@@ -5415,7 +5415,7 @@
{
MutexLocker locker(workerThreadMutex());
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
{
// Create a worker object that is not kept alive except the
@@ -5536,7 +5536,7 @@
{
MutexLocker locker(workerThreadMutex());
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
{
Persistent<WeakCollectionType> collection = allocateCollection();
@@ -5697,7 +5697,7 @@
static void workerThreadMain()
{
MutexLocker locker(workerThreadMutex());
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
DestructorLockingObject* dlo = DestructorLockingObject::create();
ASSERT_UNUSED(dlo, dlo);
@@ -6384,7 +6384,7 @@
{
// Step 2: Create an object and store the pointer.
MutexLocker locker(workerThreadMutex());
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
*object = DestructorLockingObject::create();
wakeMainThread();
parkWorkerThread();
@@ -6508,7 +6508,7 @@
private:
void runThread() override
{
- ThreadState::attachCurrentThread(false);
+ ThreadState::attachCurrentThread();
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