8048128: Fix for Solaris Studio C++ 5.13, CHECK_UNHANDLED_OOPS breaks PPC build.
authorlfoltan
Tue, 08 Jul 2014 13:52:29 -0400
changeset 25478 7e6c884aa31f
parent 25477 7dad9f95fd31
child 25493 f5bffb24bf7c
child 25624 b3bd733f04e9
8048128: Fix for Solaris Studio C++ 5.13, CHECK_UNHANDLED_OOPS breaks PPC build. Summary: Changes to successfully compile class oop within oops/oopsHierarchy.hpp for PPC build (with gcc 4.1.2). Reviewed-by: dholmes, hseigel
hotspot/src/share/vm/oops/oopsHierarchy.hpp
--- a/hotspot/src/share/vm/oops/oopsHierarchy.hpp	Tue Jul 08 08:04:06 2014 -0700
+++ b/hotspot/src/share/vm/oops/oopsHierarchy.hpp	Tue Jul 08 13:52:29 2014 -0400
@@ -124,7 +124,7 @@
   operator oopDesc* () const volatile { return obj(); }
   operator intptr_t* () const         { return (intptr_t*)obj(); }
   operator PromotedObject* () const   { return (PromotedObject*)obj(); }
-  operator markOop () const           { return markOop(obj()); }
+  operator markOop () const volatile  { return markOop(obj()); }
   operator address   () const         { return (address)obj(); }
 
   // from javaCalls.cpp