Bug 884676 followup: Make rt->interrupt relaxed for performance, r=luke.
authorJoshua Cranmer <Pidgeot18@gmail.com>
Thu, 15 Aug 2013 10:43:54 -0500
changeset 142785 f25d46b4f39fb704bbb8c4185cb14f2379d77e08
parent 142784 16ff56b1021ee01f3dee50ef1aebd94eccac0fe3
child 142786 25a567f1e260704db2d20892b3dee816042e2248
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersluke
bugs884676
milestone26.0a1
Bug 884676 followup: Make rt->interrupt relaxed for performance, r=luke.
js/src/vm/Runtime.h
--- a/js/src/vm/Runtime.h
+++ b/js/src/vm/Runtime.h
@@ -687,17 +687,17 @@ struct JSRuntime : public JS::shadow::Ru
      */
     mozilla::LinkedList<js::PerThreadData> threadList;
 
     /*
      * If non-zero, we were been asked to call the operation callback as soon
      * as possible.
      */
 #ifdef JS_THREADSAFE
-    mozilla::Atomic<int32_t> interrupt;
+    mozilla::Atomic<int32_t, mozilla::Relaxed> interrupt;
 #else
     int32_t interrupt;
 #endif
 
     /* Set when handling a signal for a thread associated with this runtime. */
     bool handlingSignal;
 
     /* Branch callback */