Bug 1853305 - Part 1: Add AutoSelectGCHeap and use it when creating property iterator...
commit51405c5297f29f76fe7af9f29fd4c15d0c655093
authorJon Coppeard <jcoppeard@mozilla.com>
Mon, 18 Sep 2023 08:32:55 +0000 (18 08:32 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Mon, 18 Sep 2023 08:32:55 +0000 (18 08:32 +0000)
treeebbf4616decd82674fd8430009c54cbedb72895e
parentd75caaf72b8f3b949f3bbbfe073f1e712b8bf22b
Bug 1853305 - Part 1: Add AutoSelectGCHeap and use it when creating property iterators r=sfink

This class observes nursery collections and encasuplates the logic of switching
heap after a specified number of collections occur.

Differential Revision: https://phabricator.services.mozilla.com/D188333
js/src/gc/GC.h
js/src/gc/GCAPI.cpp
js/src/jsnum.cpp
js/src/jsnum.h
js/src/vm/Iteration.cpp
js/src/vm/JSAtomUtils-inl.h