Bug 1830921 - Discard JIT code when disabling or enabling the nursery r=jandem
commit47aaf130477819a1b167ba9432da091efbbccae5
authorJon Coppeard <jcoppeard@mozilla.com>
Tue, 9 May 2023 08:47:59 +0000 (9 08:47 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Tue, 9 May 2023 08:47:59 +0000 (9 08:47 +0000)
tree24ad7e96d97ac66a5589ce437107c25a8ca31ae6
parent6beba29e2b944bc004f6b07bf5b9ad47e216d317
Bug 1830921 - Discard JIT code when disabling or enabling the nursery r=jandem

This makes it so we always discard JIT code when the kinds of GC thing we can
allocate in a zone changes. Previously this happened in two separate places for
pretenuring, and didn't happen when we enabled/disabled the nursery.

Differential Revision: https://phabricator.services.mozilla.com/D177272
js/public/GCAPI.h
js/src/gc/GC.cpp
js/src/gc/GCAPI.cpp
js/src/gc/Nursery.cpp
js/src/gc/Nursery.h
js/src/jit-test/tests/gc/bug-1830921.js [new file with mode: 0644]