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
parent d42c88460a
commit a590d52193

View File

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