mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-13 23:17:57 +00:00
39fa4f5773
ThreadSanitizer reports write-after-write conflicts to number_constants while initializing JSRuntimes on different threads. While an argument could be made that these writes are entirely safe (they are, after all, writing the same value every time), it seems better to move to a more obviously not-racy solution. This patch implements such a solution, by moving number_constants prior to its only use in js_InitNumberClass, and forcing the initialization of the "problematic" constants (infinities, NaNs, etc.) to take place the first time js_InitNumberClass is executed. In passing, this patch also removes the unused nc_slot enum. |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
public | ||
src | ||
xpconnect |