Bug 1804787 - Set GC use during background marking to satisfy assertions r=sfink
commit49301e1f57598c26739fa561c47ce21d5f0f2189
authorJon Coppeard <jcoppeard@mozilla.com>
Mon, 12 Dec 2022 10:10:59 +0000 (12 10:10 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Mon, 12 Dec 2022 10:10:59 +0000 (12 10:10 +0000)
tree810cfeb5245bae32c969429099f1f1d6fc8f27a6
parentbd7719e8548453385f5b9546d4d4fc9aad5e1180
Bug 1804787 - Set GC use during background marking to satisfy assertions r=sfink

This assertion is going off because it thinks we souldn't be accessing a cell's
zone off-thread. In fact we are marking and the mutator is not running so this
is fine. The problem is we didn't set GC use to marking for the background mark
task (not parallel marking, this does single threaded marking off-thread during
sweeping).

Differential Revision: https://phabricator.services.mozilla.com/D164320
js/src/gc/Sweeping.cpp