changeset 6722:29b4f4e94ad7

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
author lfoltan
date Tue, 08 Jul 2014 13:52:29 -0400
parents 4f9fa4b62c18
children 61aa7dcd51e9 bf4629bb1ad6
files src/share/vm/oops/oopsHierarchy.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/oopsHierarchy.hpp	Tue Jul 08 08:04:06 2014 -0700
+++ b/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