Bug 1834537 - Part 6: Simplify GCRuntime::checkAllocatorState a little r=sfink
commitf4d8508eef0fd5dac9c2adb3c303ffb3a6a4ea83
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 26 May 2023 09:28:20 +0000 (26 09:28 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Fri, 26 May 2023 09:28:20 +0000 (26 09:28 +0000)
tree6d959ed6d2b9910b111b8bf7d8d17f51cfd2a17e
parentf8d16dddf0d1ba472c38f448dbb99ed51c0d36db
Bug 1834537 - Part 6: Simplify GCRuntime::checkAllocatorState a little r=sfink

This makes allowGC checks constexpr to make it clearer that these parts are
conditionally compiled.

gcIfNeededAtAllocation always returns true so we can remove the return value.

Differential Revision: https://phabricator.services.mozilla.com/D178813
js/src/gc/Allocator.cpp
js/src/gc/GCRuntime.h