mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::js: GC Weak pointer callback logging stubs.
This commit is contained in:
parent
d005a95e80
commit
062e013617
2 changed files with 24 additions and 0 deletions
|
@ -34,6 +34,8 @@ class runtime
|
|||
static void handle_finalize(JSFreeOp *, JSFinalizeStatus, bool is_compartment, void *) noexcept;
|
||||
static void handle_trace_gray(JSTracer *, void *) noexcept;
|
||||
static void handle_trace_extra(JSTracer *, void *) noexcept;
|
||||
static void handle_weak_pointer_zone(JSRuntime *, void *) noexcept;
|
||||
static void handle_weak_pointer_compartment(JSRuntime *, JSCompartment *, void *) noexcept;
|
||||
static void handle_slice(JSRuntime *, JS::GCProgress, const JS::GCDescription &) noexcept;
|
||||
static void handle_zone_sweep(JS::Zone *) noexcept;
|
||||
static void handle_zone_destroy(JS::Zone *) noexcept;
|
||||
|
|
22
ircd/js.cc
22
ircd/js.cc
|
@ -3744,6 +3744,28 @@ noexcept
|
|||
reflect(progress));
|
||||
}
|
||||
|
||||
void
|
||||
ircd::js::runtime::handle_weak_pointer_compartment(JSRuntime *const rt,
|
||||
JSCompartment *const comp,
|
||||
void *const data)
|
||||
noexcept
|
||||
{
|
||||
log.debug("runtime(%p): weak pointer compartment(%p) %p",
|
||||
(const void *)rt,
|
||||
(const void *)comp,
|
||||
data);
|
||||
}
|
||||
|
||||
void
|
||||
ircd::js::runtime::handle_weak_pointer_zone(JSRuntime *const rt,
|
||||
void *const data)
|
||||
noexcept
|
||||
{
|
||||
log.debug("runtime(%p): weak pointer zone %p",
|
||||
(const void *)rt,
|
||||
data);
|
||||
}
|
||||
|
||||
void
|
||||
ircd::js::runtime::handle_trace_extra(JSTracer *const tracer,
|
||||
void *const priv)
|
||||
|
|
Loading…
Reference in a new issue