summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-19 15:37:37 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-19 15:37:37 +0100
commitce1bd4f244710fcec718e164c6d9b1621c8ec810 (patch)
tree83ca82c69f34d05f18f388a9b043407aed22cfe6 /js
parent616475a0c1109460fe42045ca3380f4d8f0752cd (diff)
downloadUXP-ce1bd4f244710fcec718e164c6d9b1621c8ec810.tar
UXP-ce1bd4f244710fcec718e164c6d9b1621c8ec810.tar.gz
UXP-ce1bd4f244710fcec718e164c6d9b1621c8ec810.tar.lz
UXP-ce1bd4f244710fcec718e164c6d9b1621c8ec810.tar.xz
UXP-ce1bd4f244710fcec718e164c6d9b1621c8ec810.zip
Use thread_local calls on Win and Mac.
This resolves #24.
Diffstat (limited to 'js')
-rw-r--r--js/src/jsutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jsutil.cpp b/js/src/jsutil.cpp
index bb9f33df9..705d21975 100644
--- a/js/src/jsutil.cpp
+++ b/js/src/jsutil.cpp
@@ -39,7 +39,7 @@ mozilla::Atomic<AutoEnterOOMUnsafeRegion*> AutoEnterOOMUnsafeRegion::owner_;
namespace oom {
JS_PUBLIC_DATA(uint32_t) targetThread = 0;
-JS_PUBLIC_DATA(MOZ_THREAD_LOCAL(uint32_t)) threadType;
+MOZ_THREAD_LOCAL(uint32_t) threadType;
JS_PUBLIC_DATA(uint64_t) maxAllocations = UINT64_MAX;
JS_PUBLIC_DATA(uint64_t) counter = 0;
JS_PUBLIC_DATA(bool) failAlways = true;