Bug 1473213 (Part 2) - add a comment about an invariant required by the JIT r=sfink

--HG--
extra : rebase_source : b5fc8c7e4099fe57f4d5ed5d21af9d88b8a35316
extra : intermediate-source : e40d822d886b47350c28c1c4cb6c45d335fc5b1b
extra : source : 4e59349dd9776f329c9545aa994c6f490f11d105
This commit is contained in:
Paul Bone 2018-07-16 11:36:49 +10:00
parent 6e12af80d7
commit 271f7a7664

View File

@ -245,6 +245,8 @@ js::Nursery::disable()
freeChunksFrom(0);
maxChunkCount_ = 0;
// We must reset currentEnd_ so that there is no space for anything in the
// nursery. JIT'd code uses this even if the nursery is disabled.
currentEnd_ = 0;
currentStringEnd_ = 0;
runtime()->gc.storeBuffer().disable();