Commit-Queue | +1 |
Hey Kentaro, I get asked repeatedly how GC is wired up in Blink. One feedback I got there is that it's confusing that things are often split apart for historical reasons and I have to agree. This CL here moves the GC callbacks into ThreadState to consolidate that setup. It also makes it easier to follow ASWManager. There's only one callback that requires `core/` (DevTools) which we can probably fix with a proper observer when it's needed.
v8::EmbedderGraph::Node::Detachedness V8GCController::DetachednessFromWrapper(
I couldn't think of a good place for this one. It's not "GC controller" but just used for heap snapshots at this point. Maybe just putting it in `v8_initializer.cc` would be good enough.
(It needs to stay in `core/` because of `Node`).
DevToolsCountersCallback dev_tools_counters_callback_;
This callback (devtools tracing scope) requires `core/`. I was asked already if we can make a GC observer at some point which we should probably do when there's more uses.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LGTM
v8::EmbedderGraph::Node::Detachedness V8GCController::DetachednessFromWrapper(
I couldn't think of a good place for this one. It's not "GC controller" but just used for heap snapshots at this point. Maybe just putting it in `v8_initializer.cc` would be good enough.
(It needs to stay in `core/` because of `Node`).
Acknowledged
DevToolsCountersCallback dev_tools_counters_callback_;
This callback (devtools tracing scope) requires `core/`. I was asked already if we can make a GC observer at some point which we should probably do when there's more uses.
+1 to introduce an observer pattern only when we have multiple cases.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
DevToolsCountersCallback dev_tools_counters_callback_;
Kentaro HaraThis callback (devtools tracing scope) requires `core/`. I was asked already if we can make a GC observer at some point which we should probably do when there's more uses.
+1 to introduce an observer pattern only when we have multiple cases.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bindings/heap: Move GC prologue callbacks to ThreadState
ThreadState is already the home for anything garbage collection
related in Blink. It combines the various GC related calls and ways to
attach GC to an Isolate for custom logic around some weakness
clearing.
The CL moves the prologue and epilogue callbacks to ThreadState as
well to unify the place where GC behavior is customized. This makes it
easier to find and explain where GC is configured in Blink.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |