hotspot/src/share/vm/runtime/sweeper.cpp
changeset 22872 b6902ee5bc8d
parent 22210 b0408ba029f6
parent 22859 7b88983393b7
child 24351 61b33cc6d3cf
--- a/hotspot/src/share/vm/runtime/sweeper.cpp	Tue Jan 28 11:21:43 2014 -0800
+++ b/hotspot/src/share/vm/runtime/sweeper.cpp	Tue Jan 28 12:25:34 2014 -0800
@@ -309,7 +309,8 @@
         _bytes_changed = 0;
       }
     }
-    _sweep_started = 0;
+    // Release work, because another compiler thread could continue.
+    OrderAccess::release_store((int*)&_sweep_started, 0);
   }
 }