Bug 1835867 - Part 2: Fold requested heap and per-kind nursery allocation allowed...
commite3940e570af77c9fa665a6cdbc998d7418719461
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 31 May 2023 11:35:59 +0000 (31 11:35 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 31 May 2023 11:35:59 +0000 (31 11:35 +0000)
tree2c4762569715e95fe6f2617b6f81606c6aff42ce
parentb7202983e01bc2f0992118291195692fa6f09660
Bug 1835867 - Part 2: Fold requested heap and per-kind nursery allocation allowed check together r=jandem

Add min heap to tenured state the zone and use it to combine the heap checks.

I'm open to a better name for this.

Depends on D179470

Differential Revision: https://phabricator.services.mozilla.com/D179471
js/src/gc/AllocKind.h
js/src/gc/Allocator.cpp
js/src/gc/Zone.cpp
js/src/gc/Zone.h