diff options
author | davidot <davidot@serenityos.org> | 2022-02-04 16:12:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-05 11:52:51 +0100 |
commit | 8da6c01d8f7b24d63431ceef1db62c2e2cdcc2bd (patch) | |
tree | 3145d43790cd6efc635c1c94419666fb76bcf724 /Userland/Utilities/js.cpp | |
parent | 794d79e3152111776f9e2394bb5fd35f062f5212 (diff) | |
download | serenity-8da6c01d8f7b24d63431ceef1db62c2e2cdcc2bd.zip |
LibJS: Remove the JS_TRACK_ZOMBIE_CELLS option
This feature had bitrotted somewhat and would trigger errors because
PrimitiveStrings were "destroyed" but because of this mode they were not
removed from the string cache. Even fixing that case running test-js
with the options still failed in more places.
Diffstat (limited to 'Userland/Utilities/js.cpp')
-rw-r--r-- | Userland/Utilities/js.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index f2d99ac71b..3b98ceeb12 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -1370,10 +1370,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) args_parser.add_option(s_strip_ansi, "Disable ANSI colors", "disable-ansi-colors", 'c'); args_parser.add_option(s_disable_source_location_hints, "Disable source location hints", "disable-source-location-hints", 'h'); args_parser.add_option(gc_on_every_allocation, "GC on every allocation", "gc-on-every-allocation", 'g'); -#ifdef JS_TRACK_ZOMBIE_CELLS - bool zombify_dead_cells = false; - args_parser.add_option(zombify_dead_cells, "Zombify dead cells (to catch missing GC marks)", "zombify-dead-cells", 'z'); -#endif args_parser.add_option(disable_syntax_highlight, "Disable live syntax highlighting", "no-syntax-highlight", 's'); args_parser.add_positional_argument(script_paths, "Path to script files", "scripts", Core::ArgsParser::Required::No); args_parser.parse(arguments); @@ -1416,9 +1412,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) ReplConsoleClient console_client(interpreter->global_object().console()); interpreter->global_object().console().set_client(console_client); interpreter->heap().set_should_collect_on_every_allocation(gc_on_every_allocation); -#ifdef JS_TRACK_ZOMBIE_CELLS - interpreter->heap().set_zombify_dead_cells(zombify_dead_cells); -#endif auto& global_environment = interpreter->realm().global_environment(); @@ -1630,9 +1623,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) ReplConsoleClient console_client(interpreter->global_object().console()); interpreter->global_object().console().set_client(console_client); interpreter->heap().set_should_collect_on_every_allocation(gc_on_every_allocation); -#ifdef JS_TRACK_ZOMBIE_CELLS - interpreter->heap().set_zombify_dead_cells(zombify_dead_cells); -#endif signal(SIGINT, [](int) { sigint_handler(); |