mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +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_finalize(JSFreeOp *, JSFinalizeStatus, bool is_compartment, void *) noexcept;
|
||||||
static void handle_trace_gray(JSTracer *, void *) noexcept;
|
static void handle_trace_gray(JSTracer *, void *) noexcept;
|
||||||
static void handle_trace_extra(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_slice(JSRuntime *, JS::GCProgress, const JS::GCDescription &) noexcept;
|
||||||
static void handle_zone_sweep(JS::Zone *) noexcept;
|
static void handle_zone_sweep(JS::Zone *) noexcept;
|
||||||
static void handle_zone_destroy(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));
|
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
|
void
|
||||||
ircd::js::runtime::handle_trace_extra(JSTracer *const tracer,
|
ircd::js::runtime::handle_trace_extra(JSTracer *const tracer,
|
||||||
void *const priv)
|
void *const priv)
|
||||||
|
|
Loading…
Reference in a new issue