Bug 1110931 - Do not use volatile for synchronization; r=jonco

--HG--
extra : rebase_source : 661aae837633799ed70db1a5e64ba9dcc21aaf66
This commit is contained in:
Terrence Cole 2014-12-12 10:44:46 -08:00
Родитель 5be405b39f
Коммит e11921de62
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -697,7 +697,7 @@ class GCRuntime
*/
bool grayBitsValid;
volatile uintptr_t majorGCRequested;
mozilla::Atomic<uintptr_t> majorGCRequested;
JS::gcreason::Reason majorGCTriggerReason;
bool minorGCRequested;
@ -792,7 +792,7 @@ class GCRuntime
* frame, rather than at the beginning. In this case, the next slice will be
* delayed so that we don't get back-to-back slices.
*/
volatile uintptr_t interFrameGC;
mozilla::Atomic<uintptr_t> interFrameGC;
/* Default budget for incremental GC slice. See SliceBudget in jsgc.h. */
int64_t sliceBudget;
@ -836,7 +836,7 @@ class GCRuntime
bool poked;
volatile js::HeapState heapState;
mozilla::Atomic<js::HeapState> heapState;
/*
* ForkJoin workers enter and leave GC independently; this counter