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

--HG--
extra : rebase_source : 0e2b341e0a12917f0584143803a39140a060886d
extra : source : 4e59349dd9776f329c9545aa994c6f490f11d105
This commit is contained in:
Paul Bone 2018-07-16 11:36:49 +10:00
parent e0abcaa9c4
commit 0647dd2041

View File

@ -249,6 +249,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();