Skip to content

Commit 10791c9

Browse files
committed
docs(runtime): leak probe reports cycles through plain wrappers under scope extended
1 parent 064390e commit 10791c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎docs/ns-builtin-modules.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ died before the snapshot, and Java is collected twice before the dump, so
295295
objects only weak entries hold are gone and not counted. The report also gives
296296
`mode`, `probed` (the Java objects modeled), `jsNodes`, `javaObjects`,
297297
`dumpBytes` and `durationMs`. In `"resurrecting"` mode the report is empty and no dump is taken:
298-
resurrection breaks these cycles.
298+
resurrection breaks these cycles. Under `"canary"` every wrapper is a canary
299+
in either scope, so under `"extended"` too a cycle through a plain wrapper,
300+
which resurrection used to break, is reported as a leak.
299301

300302
The probe is built into debug runtimes only; in a release build the function
301303
exists but throws `findLeakCycles is available in debug builds only`. It suspends the whole process for the dump, writes the Java heap to

0 commit comments

Comments
 (0)