зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1110931
- Do not use volatile for synchronization; r=jonco
--HG-- extra : rebase_source : 661aae837633799ed70db1a5e64ba9dcc21aaf66
This commit is contained in:
Родитель
5be405b39f
Коммит
e11921de62
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче