8234798: Build failure after atomic changes in JDK-8234563
authorstefank
Tue, 26 Nov 2019 13:50:26 +0100
changeset 59268 611f6bfe7c30
parent 59267 4444591b3ac0
child 59269 ac6f7738a0ee
child 59275 a6e25566cb56
8234798: Build failure after atomic changes in JDK-8234563 Reviewed-by: tschatzl, rkennke, zgu
src/hotspot/share/gc/shenandoah/shenandoahEvacOOMHandler.cpp
--- a/src/hotspot/share/gc/shenandoah/shenandoahEvacOOMHandler.cpp	Tue Nov 26 11:57:58 2019 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahEvacOOMHandler.cpp	Tue Nov 26 13:50:26 2019 +0100
@@ -113,7 +113,7 @@
 void ShenandoahEvacOOMHandler::clear() {
   assert(ShenandoahSafepoint::is_at_shenandoah_safepoint(), "must be at a safepoint");
   assert((Atomic::load_acquire(&_threads_in_evac) & ~OOM_MARKER_MASK) == 0, "sanity");
-  Atomic::release_store_fence<jint>(&_threads_in_evac, 0);
+  Atomic::release_store_fence(&_threads_in_evac, (jint)0);
 }
 
 ShenandoahEvacOOMScope::ShenandoahEvacOOMScope() {