e0c1a349ea
The CL addresses two issues with (Weak)Persistent and WeakMember: 1. (Weak)Persistent pointers are cleared on heap teardown. Before this CL the pointers would contain stale values which could lead to UAF. 2. WeakPersistent and WeakMember are cleared using a combination of internal clearing methods and mutable fields which avoids the use of const_cast<>. Bug: chromium:1056170 Change-Id: Ibf2b0f0856771b4f6906608cde13a6d43ebf81f3 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2248190 Reviewed-by: Omer Katz <omerkatz@chromium.org> Reviewed-by: Anton Bikineev <bikineev@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#68394} |
||
---|---|---|
.. | ||
internal | ||
allocation.h | ||
common.h | ||
custom-space.h | ||
DEPS | ||
garbage-collected.h | ||
heap.h | ||
liveness-broker.h | ||
macros.h | ||
member.h | ||
persistent.h | ||
platform.h | ||
prefinalizer.h | ||
README.md | ||
source-location.h | ||
trace-trait.h | ||
type-traits.h | ||
visitor.h |
C++ Garbage Collection
This directory provides an open-source garbage collection library for C++.
The library is under construction, meaning that all APIs in this directory are incomplete and considered unstable and should not be used.