OLD | NEW |
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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 m_safePointStackCopy[i] = from[i]; | 1304 m_safePointStackCopy[i] = from[i]; |
1305 } | 1305 } |
1306 } | 1306 } |
1307 | 1307 |
1308 void ThreadState::addInterruptor(PassOwnPtr<BlinkGCInterruptor> interruptor) | 1308 void ThreadState::addInterruptor(PassOwnPtr<BlinkGCInterruptor> interruptor) |
1309 { | 1309 { |
1310 ASSERT(checkThread()); | 1310 ASSERT(checkThread()); |
1311 SafePointScope scope(BlinkGC::HeapPointersOnStack); | 1311 SafePointScope scope(BlinkGC::HeapPointersOnStack); |
1312 { | 1312 { |
1313 MutexLocker locker(m_heap->threadAttachMutex()); | 1313 MutexLocker locker(m_heap->threadAttachMutex()); |
1314 m_interruptors.append(interruptor); | 1314 m_interruptors.append(std::move(interruptor)); |
1315 } | 1315 } |
1316 } | 1316 } |
1317 | 1317 |
1318 void ThreadState::registerStaticPersistentNode(PersistentNode* node, PersistentC
learCallback callback) | 1318 void ThreadState::registerStaticPersistentNode(PersistentNode* node, PersistentC
learCallback callback) |
1319 { | 1319 { |
1320 #if defined(LEAK_SANITIZER) | 1320 #if defined(LEAK_SANITIZER) |
1321 if (m_disabledStaticPersistentsRegistration) | 1321 if (m_disabledStaticPersistentsRegistration) |
1322 return; | 1322 return; |
1323 #endif | 1323 #endif |
1324 | 1324 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 threadDump->addScalar("dead_count", "objects", totalDeadCount); | 1517 threadDump->addScalar("dead_count", "objects", totalDeadCount); |
1518 threadDump->addScalar("live_size", "bytes", totalLiveSize); | 1518 threadDump->addScalar("live_size", "bytes", totalLiveSize); |
1519 threadDump->addScalar("dead_size", "bytes", totalDeadSize); | 1519 threadDump->addScalar("dead_size", "bytes", totalDeadSize); |
1520 | 1520 |
1521 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c
reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); | 1521 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c
reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); |
1522 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()-
>createMemoryAllocatorDumpForCurrentGC(classesDumpName); | 1522 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()-
>createMemoryAllocatorDumpForCurrentGC(classesDumpName); |
1523 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners
hipEdge(classesDump->guid(), heapsDump->guid()); | 1523 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners
hipEdge(classesDump->guid(), heapsDump->guid()); |
1524 } | 1524 } |
1525 | 1525 |
1526 } // namespace blink | 1526 } // namespace blink |
OLD | NEW |