• Michael Lippautz's avatar
    cppgc: Avoid using process global mutex for HeapRegistry · bf72abd4
    Michael Lippautz authored
    Marking holds the process wide mutex for synchronizing CrossThread*
    references. In addition, marking may also create temporary copies of
    Member references for concurrent tracing (snapshot).
    
    Provide HeapRegistry with its own mutex to avoid a deadlock with
    Member checking during marking.
    
    Bug: chromium:1056170
    Change-Id: I31d922ec1a476942e29d8d4fa7d864a015f428cc
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2904211
    Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Omer Katz <omerkatz@chromium.org>
    Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
    Reviewed-by: 's avatarOmer Katz <omerkatz@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#74646}
    bf72abd4
process-heap.cc 1.85 KB