• Peter Marshall's avatar
    [gc] Attach page to LocalArrayBufferTracker rather than space · 11926e6e
    Peter Marshall authored
    Each local ABT is logically for one page. We passed the space in to the
    constructor, but this is wrong because the space a page is in can
    change, e.g. for compaction pages.
    
    Instead, pass the page to the local ABT constructor and always get the
    space from this. To do this we need to push the AllocateLocalTracker()
    helper and friends down to Page, rather than its superclass MemoryChunk.
    
    Unfortunately, we need to keep ReleaseLocalTracker() on MemoryChunk even
    though only Pages can have local trackers, because we can't do virtual
    dispatch on MemoryChunk::ReleaseAllocatedMemory() which would allow us
    to clean up the tracker memory nicely for pages only.
    
    We also have to make sure we update external bytes accounting properly
    when swapping spaces, as in SemiSpace::Swap().
    
    Change-Id: Iff02e41dd12a6b04a57fcc32f9e2b4f049fcbc24
    Reviewed-on: https://chromium-review.googlesource.com/1107635
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53930}
    11926e6e
Name
Last commit
Last update
..
heap-tester.h Loading commit data...
heap-utils.cc Loading commit data...
heap-utils.h Loading commit data...
test-alloc.cc Loading commit data...
test-array-buffer-tracker.cc Loading commit data...
test-compaction.cc Loading commit data...
test-concurrent-marking.cc Loading commit data...
test-embedder-tracing.cc Loading commit data...
test-heap.cc Loading commit data...
test-incremental-marking.cc Loading commit data...
test-invalidated-slots.cc Loading commit data...
test-lab.cc Loading commit data...
test-mark-compact.cc Loading commit data...
test-page-promotion.cc Loading commit data...
test-spaces.cc Loading commit data...
test-unmapper.cc Loading commit data...
test-weak-references.cc Loading commit data...