gecko-dev/js
Nathan Froyd 39fa4f5773 Bug 1122021 - make number_constants internal to js_InitNumberClass; r=jorendorff
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.
2015-02-25 11:18:28 -05:00
..
ductwork/debugger
examples
ipc Bug 1127475 - Remove unnecessary parent arguments. r=bz 2015-02-13 12:20:02 +01:00
public Bug 1136046 - Increase maximum capacity of js::HashMap and HashSet r=luke 2015-02-26 09:02:13 +00:00
src Bug 1122021 - make number_constants internal to js_InitNumberClass; r=jorendorff 2015-02-25 11:18:28 -05:00
xpconnect Bug 1135772 - Return null on failure in nsXPCWrappedJS's QueryInterface. r=smaug 2015-02-25 09:44:10 -08:00