v8/include
Shu-yu Guo 31d8ff7ac5 [weakrefs] Schedule FinalizationGroup cleanup tasks from within V8
Deprecate the following explicit FinalizationGroup APIs in favor of
automatic handling of FinalizationGroup cleanup callbacks:
  - v8::Isolate::SetHostCleanupFinalizationGroupCallback
  - v8::FinaliationGroup::Cleanup

If no HostCleanupFinalizationGroupCallback is set, then
FinalizationGroup cleanup callbacks are automatically scheduled by V8
itself as non-nestable foreground tasks.

When a Context being disposed, all FinalizationGroups that are
associated with it are removed from the dirty list, cancelling
scheduled cleanup.

Bug: v8:8179
Change-Id: Ic09313a11dd00af36d1f698250b3d735155f45e8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1986392
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66184}
2020-02-08 00:20:10 +00:00
..
libplatform [platform] Support nestable and non-nestable tasks in DefaultForegroundTaskRunner 2020-01-24 01:07:50 +00:00
APIDesign.md Move inspector protocol definitions to include/ 2019-06-18 17:59:36 +00:00
DEPS [inspector] Build inspector under v8_enable_inspector build flag. 2016-09-06 23:26:35 +00:00
js_protocol-1.2.json Move inspector protocol definitions to include/ 2019-06-18 17:59:36 +00:00
js_protocol-1.3.json Move inspector protocol definitions to include/ 2019-06-18 17:59:36 +00:00
js_protocol.pdl [debugger] Allow termination-on-resume when paused at a breakpoint 2020-02-03 16:33:29 +00:00
OWNERS Add verwaest as an API owner 2019-10-15 17:40:59 +00:00
v8-inspector-protocol.h [inspector] Build inspector under v8_enable_inspector build flag. 2016-09-06 23:26:35 +00:00
v8-inspector.h [debugger] Allow termination-on-resume when paused at a breakpoint 2020-02-03 16:33:29 +00:00
v8-internal.h Reland^2 "[runtime] Move Context::native_context to the map" 2019-10-17 17:33:08 +00:00
v8-platform.h [platform] Require the foreground taskrunner to support non-nestable tasks for weak refs 2020-01-24 05:04:10 +00:00
v8-profiler.h [heap-profiler] Expose 'globalObjectsAsRoots' via inspector interface 2019-12-18 10:18:58 +00:00
v8-util.h Reland "[api,heap] Remove deprecated Persistent APIs" 2019-04-24 09:34:27 +00:00
v8-value-serializer-version.h Expose the ValueSerializer data format version as a compile-time constant. 2017-04-27 15:14:41 +00:00
v8-version-string.h [build] Fix V8_VERSION_STRING with embedder string 2017-10-23 14:31:52 +00:00
v8-version.h Update version to 8.2 2020-01-30 15:01:12 +00:00
v8-wasm-trap-handler-posix.h [api] Fix includes in trap handler API header files 2019-01-16 15:15:52 +00:00
v8-wasm-trap-handler-win.h [api] Fix includes in trap handler API header files 2019-01-16 15:15:52 +00:00
v8.h [weakrefs] Schedule FinalizationGroup cleanup tasks from within V8 2020-02-08 00:20:10 +00:00
v8config.h api,handles: Support for on-stack TracedReference 2020-01-14 15:37:57 +00:00