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

Side by Side Diff: third_party/WebKit/Source/platform/heap/ThreadState.cpp

Issue 1916703002: Prepare for move-only PassOwnPtr in the remaining directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@core1
Patch Set: Merge with trunk. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 m_safePointStackCopy[i] = from[i]; 1352 m_safePointStackCopy[i] = from[i];
1353 } 1353 }
1354 } 1354 }
1355 1355
1356 void ThreadState::addInterruptor(PassOwnPtr<BlinkGCInterruptor> interruptor) 1356 void ThreadState::addInterruptor(PassOwnPtr<BlinkGCInterruptor> interruptor)
1357 { 1357 {
1358 ASSERT(checkThread()); 1358 ASSERT(checkThread());
1359 SafePointScope scope(BlinkGC::HeapPointersOnStack); 1359 SafePointScope scope(BlinkGC::HeapPointersOnStack);
1360 { 1360 {
1361 MutexLocker locker(threadAttachMutex()); 1361 MutexLocker locker(threadAttachMutex());
1362 m_interruptors.append(interruptor); 1362 m_interruptors.append(std::move(interruptor));
1363 } 1363 }
1364 } 1364 }
1365 1365
1366 void ThreadState::registerStaticPersistentNode(PersistentNode* node, PersistentC learCallback callback) 1366 void ThreadState::registerStaticPersistentNode(PersistentNode* node, PersistentC learCallback callback)
1367 { 1367 {
1368 #if defined(LEAK_SANITIZER) 1368 #if defined(LEAK_SANITIZER)
1369 if (m_disabledStaticPersistentsRegistration) 1369 if (m_disabledStaticPersistentsRegistration)
1370 return; 1370 return;
1371 #endif 1371 #endif
1372 1372
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 threadDump->addScalar("dead_count", "objects", totalDeadCount); 1571 threadDump->addScalar("dead_count", "objects", totalDeadCount);
1572 threadDump->addScalar("live_size", "bytes", totalLiveSize); 1572 threadDump->addScalar("live_size", "bytes", totalLiveSize);
1573 threadDump->addScalar("dead_size", "bytes", totalDeadSize); 1573 threadDump->addScalar("dead_size", "bytes", totalDeadSize);
1574 1574
1575 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); 1575 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c reateMemoryAllocatorDumpForCurrentGC(heapsDumpName);
1576 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()- >createMemoryAllocatorDumpForCurrentGC(classesDumpName); 1576 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()- >createMemoryAllocatorDumpForCurrentGC(classesDumpName);
1577 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners hipEdge(classesDump->guid(), heapsDump->guid()); 1577 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners hipEdge(classesDump->guid(), heapsDump->guid());
1578 } 1578 }
1579 1579
1580 } // namespace blink 1580 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698