Bug 1837620 - Part 5: Sweep JIT code as part of discard when possible r=sfink
commite89769b84d7ff253ac311db992355c587a870363
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 5 Jul 2023 16:58:38 +0000 (5 16:58 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 5 Jul 2023 16:58:38 +0000 (5 16:58 +0000)
tree2e9f840ef846d8203ada146af157c01249b3d15b
parentf1ec86a1b8b42a9715b94f16f974250edb85143c
Bug 1837620 - Part 5: Sweep JIT code as part of discard when possible r=sfink

This is an optimisation so we don't repeatedly loop over all scripts in a zone
as there can be very many of these (e.g. 50000 is not unusual to see while
browsing around).

This adds the option to sweep JIT scripts as part of the discard options.

Differential Revision: https://phabricator.services.mozilla.com/D181985
js/src/gc/Sweeping.cpp
js/src/gc/Zone.cpp
js/src/gc/Zone.h
js/src/jit/Ion.cpp