• Dan Elphick's avatar
    [heap] Start making ReadOnlySpace Pages relocatable · 7485b129
    Dan Elphick authored
    Adds Page::MakeHeaderRelocatable that clears pointers to objects
    outside the space. In this case relocatable means the entire page
    heading is position independent in memory, meaning it could be saved to
    disk and reloaded at a different memory location in a new process
    without there being any invalid pointers.
    
    Currently this only affects mutex_, locate_tracker_ and reservation_.
    
    Additionally makes VerifyHeap work when there's no mutex in a Page.
    
    This is just a stepping stone to making the Pages headers relocatable
    since heap_ and owner_ still point out of the Page.
    
    Also removes the empty ReadOnlySpace destructor.
    
    Bug: v8:7464
    Change-Id: Ife3c06575fa73a5818c4991fb9bec30a5f43901d
    Reviewed-on: https://chromium-review.googlesource.com/1054879Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
    Commit-Queue: Dan Elphick <delphick@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53196}
    7485b129
Name
Last commit
Last update
..
OWNERS Loading commit data...
condition-variable.cc Loading commit data...
condition-variable.h Loading commit data...
elapsed-timer.h Loading commit data...
mutex.cc Loading commit data...
mutex.h Loading commit data...
platform-aix.cc Loading commit data...
platform-cygwin.cc Loading commit data...
platform-freebsd.cc Loading commit data...
platform-fuchsia.cc Loading commit data...
platform-linux.cc Loading commit data...
platform-macos.cc Loading commit data...
platform-openbsd.cc Loading commit data...
platform-posix-time.cc Loading commit data...
platform-posix-time.h Loading commit data...
platform-posix.cc Loading commit data...
platform-posix.h Loading commit data...
platform-qnx.cc Loading commit data...
platform-solaris.cc Loading commit data...
platform-win32.cc Loading commit data...
platform.h Loading commit data...
semaphore.cc Loading commit data...
semaphore.h Loading commit data...
time.cc Loading commit data...
time.h Loading commit data...