• Omer Katz's avatar
    cppgc: Handle non-gced traceable ephemeron values · 75131637
    Omer Katz authored
    On-heap hash maps in blink are limited to Member types and non-traceable
    types. The only exception to that is TraceWrapperV8Reference. Thus
    ephemerons can have non-gced traceable values. This values should not be
    pushed to the marking worklist since we expect everything in the
    worklist to be marked and not in construction (but these values don't
    have an object header).
    Instead, when getting a non-gced value we should immediately trace it.
    
    This is only relevant to ephemerons. Any other case would go through
    Trace(const T&) that dispatches to the TraceTrait.
    
    Blink has 1 use case of HeahHashMap from WeakMember<ScriptWrappable> to
    TraceWrapperV8Reference.
    
    Bug: chromium:1056170
    Change-Id: Ia8f341d6bb1fc8fd3655b2be66b7814896549d1e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2696648Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Omer Katz <omerkatz@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#72763}
    75131637
Name
Last commit
Last update
..
cppgc Loading commit data...
libplatform Loading commit data...
APIDesign.md Loading commit data...
DEPS Loading commit data...
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
js_protocol-1.2.json Loading commit data...
js_protocol-1.3.json Loading commit data...
js_protocol.pdl Loading commit data...
v8-cppgc.h Loading commit data...
v8-fast-api-calls.h Loading commit data...
v8-inspector-protocol.h Loading commit data...
v8-inspector.h Loading commit data...
v8-internal.h Loading commit data...
v8-metrics.h Loading commit data...
v8-platform.h Loading commit data...
v8-profiler.h Loading commit data...
v8-unwinder-state.h Loading commit data...
v8-util.h Loading commit data...
v8-value-serializer-version.h Loading commit data...
v8-version-string.h Loading commit data...
v8-version.h Loading commit data...
v8-wasm-trap-handler-posix.h Loading commit data...
v8-wasm-trap-handler-win.h Loading commit data...
v8.h Loading commit data...
v8config.h Loading commit data...