DescriptionOilpan: Refactor the way we calculate heap statistics
This is a preparation for implementing incremental sweeping.
- Remove ThreadState::HeapStats.
- Introduce Heap::allocatedSpace, Heap::allocatedObjectSize and Heap::liveObjectSize.
--- Heap::allocatedSpace keeps track of the size of allocated space.
--- Heap::allocatedObjectSize keeps track of the size of objects allocated since the last GC.
--- Heap::liveObjectSize keeps track of the size of marked objects in the last GC.
- Adds a couple of atomic instructions to Atomics.h to update the Heap metrics atomically.
- This CL fixes the issue that shouldGC() determines GC timing only based on the size of the current thread heap. After this CL, shouldGC() determines GC timing based on the entire heap.
- Rename getStatsForTesting() to objectPayloadSizeForTesting().
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185513
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185569
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #
Total comments: 10
Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : #Patch Set 9 : #Patch Set 10 : #Patch Set 11 : #
Total comments: 8
Patch Set 12 : #Patch Set 13 : #
Messages
Total messages: 31 (6 generated)
|