Bug 844768 - Make JSRuntime::gcNumArenasFreeCommitted atomic r=billm

This commit is contained in:
Jon Coppeard 2013-11-05 10:16:53 +00:00
parent cecefc3587
commit 5165f4707a

View File

@ -995,10 +995,8 @@ struct JSRuntime : public JS::shadow::Runtime,
/*
* Number of the committed arenas in all GC chunks including empty chunks.
* The counter is volatile as it is read without the GC lock, see comments
* in MaybeGC.
*/
volatile uint32_t gcNumArenasFreeCommitted;
mozilla::Atomic<uint32_t, mozilla::ReleaseAcquire> gcNumArenasFreeCommitted;
js::GCMarker gcMarker;
void *gcVerifyPreData;
void *gcVerifyPostData;