зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1452898 - Make count of helper thread zones atomic as this can be read without locking by helper threads r=jandem
This commit is contained in:
Родитель
d42c88460a
Коммит
a590d52193
|
@ -479,7 +479,7 @@ struct JSRuntime : public js::MallocProvider<JSRuntime>
|
|||
* Number of zones which may be operated on by non-cooperating helper
|
||||
* threads.
|
||||
*/
|
||||
js::UnprotectedData<size_t> numActiveHelperThreadZones;
|
||||
mozilla::Atomic<size_t> numActiveHelperThreadZones;
|
||||
|
||||
friend class js::AutoLockForExclusiveAccess;
|
||||
friend class js::AutoLockScriptData;
|
||||
|
|
Загрузка…
Ссылка в новой задаче