mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
d42c88460a
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user