bindings/heap: Shutdown GCs do not consider wrappers
Teardown garbage collections do not consider V8 wrappers as roots. Previously this was achieved by clearing out the internal wrapper fields of JS objects which caused a bailout during visitation. This is not necessary, as V8 ignores outgoing references once no more tracer is attached (see V8PerIsolateData::WillBeDestroyed). Blink can then just ignore DOM wrappers by not considering them in first place for termination garbage collections. Change-Id: I4b698b809e5eeb10a5a6f1fa9bdde9c133fec320 Reviewed-on: https://chromium-review.googlesource.com/c/1448216Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#627976}
Showing
Please register or sign in to comment