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:
Jon Coppeard 2018-04-11 10:56:38 +01:00
Родитель d42c88460a
Коммит a590d52193
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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;