diff src/cpu/ppc/vm/bytecodeInterpreter_ppc.hpp @ 14433:018b357638aa

8028514: PPC64: Fix C++ Interpreter after '7195622: CheckUnhandledOops has limited usefulness now' Summary: fix CPP-interpreter after CheckUnhandledOops was re-enabled in the fastdebug build Reviewed-by: kvn, dholmes, lfoltan
author simonis
date Tue, 19 Nov 2013 11:53:58 -0800
parents ec28f9c041ff
children 67fa91961822
line wrap: on
line diff
--- a/src/cpu/ppc/vm/bytecodeInterpreter_ppc.hpp	Sat Nov 16 01:42:55 2013 +0100
+++ b/src/cpu/ppc/vm/bytecodeInterpreter_ppc.hpp	Tue Nov 19 11:53:58 2013 -0800
@@ -91,7 +91,7 @@
 #define LOCALS_SLOT(offset)    ((intptr_t*)&locals[-(offset)])
 #define LOCALS_ADDR(offset)    ((address)locals[-(offset)])
 #define LOCALS_INT(offset)     (*(jint*)&(locals[-(offset)]))
-#define LOCALS_OBJECT(offset)  ((oop)locals[-(offset)])
+#define LOCALS_OBJECT(offset)  (cast_to_oop(locals[-(offset)]))
 #define LOCALS_LONG_AT(offset) (((address)&locals[-((offset) + 1)]))
 #define LOCALS_DOUBLE_AT(offset) (((address)&locals[-((offset) + 1)]))