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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Heap.h

Issue 2127453002: Oilpan: Introduce memory pool for CallbackStacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 static void reportMemoryUsageHistogram(); 389 static void reportMemoryUsageHistogram();
390 static void reportMemoryUsageForTracing(); 390 static void reportMemoryUsageForTracing();
391 391
392 private: 392 private:
393 // Reset counters that track live and allocated-since-last-GC sizes. 393 // Reset counters that track live and allocated-since-last-GC sizes.
394 void resetHeapCounters(); 394 void resetHeapCounters();
395 395
396 static int arenaIndexForObjectSize(size_t); 396 static int arenaIndexForObjectSize(size_t);
397 static bool isNormalArenaIndex(int); 397 static bool isNormalArenaIndex(int);
398 398
399 void commitCallbackStacks();
399 void decommitCallbackStacks(); 400 void decommitCallbackStacks();
400 401
401 RecursiveMutex m_threadAttachMutex; 402 RecursiveMutex m_threadAttachMutex;
402 ThreadStateSet m_threads; 403 ThreadStateSet m_threads;
403 ThreadHeapStats m_stats; 404 ThreadHeapStats m_stats;
404 std::unique_ptr<RegionTree> m_regionTree; 405 std::unique_ptr<RegionTree> m_regionTree;
405 std::unique_ptr<HeapDoesNotContainCache> m_heapDoesNotContainCache; 406 std::unique_ptr<HeapDoesNotContainCache> m_heapDoesNotContainCache;
406 std::unique_ptr<SafePointBarrier> m_safePointBarrier; 407 std::unique_ptr<SafePointBarrier> m_safePointBarrier;
407 std::unique_ptr<FreePagePool> m_freePagePool; 408 std::unique_ptr<FreePagePool> m_freePagePool;
408 std::unique_ptr<OrphanedPagePool> m_orphanedPagePool; 409 std::unique_ptr<OrphanedPagePool> m_orphanedPagePool;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 void VisitorHelper<Derived>::handleWeakCell(Visitor* self, void* object) 620 void VisitorHelper<Derived>::handleWeakCell(Visitor* self, void* object)
620 { 621 {
621 T** cell = reinterpret_cast<T**>(object); 622 T** cell = reinterpret_cast<T**>(object);
622 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell)) 623 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell))
623 *cell = nullptr; 624 *cell = nullptr;
624 } 625 }
625 626
626 } // namespace blink 627 } // namespace blink
627 628
628 #endif // Heap_h 629 #endif // Heap_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/CallbackStack.cpp ('k') | third_party/WebKit/Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698