diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-21 13:47:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-21 14:34:40 +0200 |
commit | fbe290751067b52770ead18ff6f06bccc55e2c98 (patch) | |
tree | 73a256c8de5df3e01c87fb9b048a6029d9f64fa1 /Libraries/LibJS/Runtime/VM.h | |
parent | 31bb107922f8c869bfecb348288a7e4dc74d8937 (diff) | |
download | serenity-fbe290751067b52770ead18ff6f06bccc55e2c98.zip |
LibJS: GC should gather roots from all active interpreters
If we are in a nested execution context, we shouldn't only mark things
used by the active interpreter.
Diffstat (limited to 'Libraries/LibJS/Runtime/VM.h')
-rw-r--r-- | Libraries/LibJS/Runtime/VM.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/VM.h b/Libraries/LibJS/Runtime/VM.h index d262398219..dd1b333cc0 100644 --- a/Libraries/LibJS/Runtime/VM.h +++ b/Libraries/LibJS/Runtime/VM.h @@ -53,6 +53,8 @@ public: Interpreter& m_interpreter; }; + void gather_roots(HashTable<Cell*>&); + private: VM(); |