summaryrefslogtreecommitdiff
path: root/Userland/Shell/Job.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-11 16:44:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-11 16:52:03 +0200
commitc364520c2402b4b395f4e43fcfe3d4af4d546810 (patch)
tree0de3e6d60caea72831f3807b473b20d1bb2acdf5 /Userland/Shell/Job.cpp
parent57371f7608b0d3251be03192e03a70b8b36ea3f2 (diff)
downloadserenity-c364520c2402b4b395f4e43fcfe3d4af4d546810.zip
LibJS+js+test-js: Add GC debug mode that keeps cells "alive" as zombies
This patch adds a `-z` option to js and test-js. When run in this mode, garbage cells are never actually destroyed. We instead keep them around in a special zombie state. This allows us to validate that zombies don't get marked in future GC scans (since there were not supposed to be any more references!) :^) Cells get notified when they become a zombie (via did_become_zombie()) and this is used by WeakContainer cells to deregister themselves from the heap.
Diffstat (limited to 'Userland/Shell/Job.cpp')
0 files changed, 0 insertions, 0 deletions