Bug 1834993 - Fix nursery allocatable flag for objects with foreground finalizers...
commit1c86d77e0e999a853ddecbcbeb2f7fcd9ac91897
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 26 May 2023 08:29:49 +0000 (26 08:29 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Fri, 26 May 2023 08:29:49 +0000 (26 08:29 +0000)
tree1e82f3593679be3bb19b7d59ee4dce7e437f8d77
parentebdf250671b75e0125a5d0213b9bf5ab5eb87eec
Bug 1834993 - Fix nursery allocatable flag for objects with foreground finalizers r=sfink

Objects with foreground finalizers can be allocated in the nursery if the
JSCLASS_SKIP_NURSERY_FINALIZE flag is specified.

This data is used to implement IsNurseryAllocable which is used in
ZoneAllCellIter (and in assertions).

Differential Revision: https://phabricator.services.mozilla.com/D178808
js/src/gc/AllocKind.h
js/src/gc/GCAPI.cpp
js/src/jit/MacroAssembler.cpp