mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
94052d5b73
The js::SPSProfiler::lock_ only existed to protect the js::SPSProfiler::strings member[0], but it was not clear at all whether it protected all members or what. Instead, let's wrap the strings member in a js::ExclusiveData so that the *only* way to access it by taking the lock and so that it is clear what members need locking. And of course there were multiple places where the member wasn't getting locked properly... [0] See http://searchfox.org/mozilla-central/diff/0df4a565cc0c7ce54d0f7628a87280a6dca140c4/js/src/vm/SPSProfiler.h#215 for the archaeology bits. --HG-- extra : rebase_source : b157315e9975529a7553cb236980caa8acd48bf9 |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
public | ||
src | ||
xpconnect | ||
moz.configure |