• Omer Katz's avatar
    cppgc: Fix bug in reporting allcoated bytes to v8 · ed75c0ad
    Omer Katz authored
    In crrev.com/c/3056970 I merged reporting allocated bytes from CppHeap
    to v8 with reporting from cppgc to CppHeap. The reporting handler
    assumed in_no_gc_scope() is false.
    Unfortunately this breaks. On heap termination, cppgc will report to
    CppHeap but CppHeap will have entered a no gc scope when it detached
    from the isolate.
    
    We could adjust the DCHECK, but I think it's simpler to revert to the
    previous unmerged state and simply port the bug fix from
    crrev.com/c/3056970 (i.e. lines 484-486 in cpp-heap.cc in this CL).
    
    Bug: chromium:1056170
    Change-Id: I5aa953c31388f7b3bb3326ff10d5a33961be2aa1
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3067227Reviewed-by: 's avatarAnton Bikineev <bikineev@chromium.org>
    Commit-Queue: Omer Katz <omerkatz@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#76088}
    ed75c0ad
Name
Last commit
Last update
..
cpp-heap.cc Loading commit data...
cpp-heap.h Loading commit data...
cpp-snapshot.cc Loading commit data...
cpp-snapshot.h Loading commit data...
unified-heap-marking-state.h Loading commit data...
unified-heap-marking-verifier.cc Loading commit data...
unified-heap-marking-verifier.h Loading commit data...
unified-heap-marking-visitor.cc Loading commit data...
unified-heap-marking-visitor.h Loading commit data...