hotspot/src/share/vm/runtime/sweeper.cpp
changeset 22859 7b88983393b7
parent 21767 41eaa9a17059
child 22872 b6902ee5bc8d
--- a/hotspot/src/share/vm/runtime/sweeper.cpp	Thu Dec 05 15:13:12 2013 -0800
+++ b/hotspot/src/share/vm/runtime/sweeper.cpp	Mon Dec 02 10:26:14 2013 +0100
@@ -299,7 +299,8 @@
         _bytes_changed = 0;
       }
     }
-    _sweep_started = 0;
+    // Release work, because another compiler thread could continue.
+    OrderAccess::release_store((int*)&_sweep_started, 0);
   }
 }