8029566: PPC: OrderAccess::load_acquire(julong) is broken
authorjprovino
Wed, 11 Dec 2013 13:51:28 -0500 (2013-12-11)
changeset 22227 7c679653987e
parent 22226 1d8f2283eb16
child 22228 f0a0d6be25c6
8029566: PPC: OrderAccess::load_acquire(julong) is broken Summary: JFR needs this fix to run on PPC Reviewed-by: sla, mikael
hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
--- a/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp	Wed Dec 11 01:09:04 2013 +0400
+++ b/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp	Wed Dec 11 13:51:28 2013 -0500
@@ -174,6 +174,7 @@
 
 inline jint    jint_cast   (jfloat  x)           { return *(jint*   )&x; }
 inline jlong   jlong_cast  (jdouble x)           { return *(jlong*  )&x; }
+inline julong  julong_cast (jdouble x)           { return *(julong* )&x; }
 
 inline jfloat  jfloat_cast (jint    x)           { return *(jfloat* )&x; }
 inline jdouble jdouble_cast(jlong   x)           { return *(jdouble*)&x; }