v8/include/cppgc/internal
Michael Lippautz 4569ffae0b Migrate CrossThreadPersistent
Adds a cross-thread reference for strongly and weakly retaining
objects on a thread other than the thread that owns the object.

The intended use of the reference is by setting it up on the
originating thread, holding the object alive from another thread, and
ultimately accessing the object again on the originating thread.

The reference has known caveats:
- It's unsafe to use when the heap may terminate;
- It's unsafe to transitively reach through the graph because of
  compaction;

Change-Id: I84fbdde69a099eb54af5b93c34e2169915b17e64
Bug: chromium:1056170
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2436449
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Omer Katz <omerkatz@chromium.org>
Reviewed-by: Anton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70428}
2020-10-09 14:33:57 +00:00
..
api-constants.h cppgc: Move caged heap into a separate class 2020-06-16 09:58:19 +00:00
atomic-entry-flag.h cppgc: Add write barrier 2020-06-02 18:03:35 +00:00
caged-heap-local-data.h cppgc: Add initial implementation of young generation 2020-06-17 06:48:10 +00:00
compiler-specific.h cppgc: Add initial implementation of young generation 2020-06-17 06:48:10 +00:00
finalizer-trait.h cppgc: Add public target to build against 2020-04-21 12:48:23 +00:00
gc-info.h cppgc: Add naming infrastructure 2020-10-08 12:25:21 +00:00
logging.h Fix LINT exceptions across the code base 2020-04-27 16:37:04 +00:00
name-trait.h cppgc: Fix compile-time typename for release builds 2020-10-09 09:33:02 +00:00
persistent-node.h Migrate CrossThreadPersistent 2020-10-09 14:33:57 +00:00
pointer-policies.h Migrate CrossThreadPersistent 2020-10-09 14:33:57 +00:00
prefinalizer-handler.h cppgc: Typo and signature fix 2020-09-02 07:34:20 +00:00
process-heap.h cppgc: Add write barrier 2020-06-02 18:03:35 +00:00
write-barrier.h cppgc: Add initial implementation of young generation 2020-06-17 06:48:10 +00:00