Bug 1802087 - Part 1: Discard JIT code for RegExpShared objects at the start of GC...
commit440aad24ffd9a6da49511e27a49c40eaf0e075ab
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 23 Nov 2022 13:51:06 +0000 (23 13:51 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 23 Nov 2022 13:51:06 +0000 (23 13:51 +0000)
tree0c19610fb924f97610111950642275798ccf0d29
parent817b8e909fa85280f9c5c81f02368212624e974a
Bug 1802087 - Part 1: Discard JIT code for RegExpShared objects at the start of GC r=jandem

Currently we discard JIT code for RegExpShared by clearing fields during
marking. The patch changes this to do this at the start of GC.

This is a slight pessimisation as it happens for all RegExpShared objects
including unreachable ones. I don't expect this to be noticable in practice.

Differential Revision: https://phabricator.services.mozilla.com/D162820
js/src/gc/Zone.cpp
js/src/vm/RegExpObject.cpp