Mercurial > hg > graal-jvmci-8
diff src/share/vm/oops/methodData.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 | 2b8e28fdf503 |
children | da862781b584 |
line wrap: on
line diff
--- a/src/share/vm/oops/methodData.hpp Sat Nov 16 01:42:55 2013 +0100 +++ b/src/share/vm/oops/methodData.hpp Tue Nov 19 11:53:58 2013 -0800 @@ -395,7 +395,7 @@ } static oop oop_at(DataLayout* layout, int index) { - return (oop)layout->cell_at(index); + return cast_to_oop(layout->cell_at(index)); } static void set_intptr_at(DataLayout* layout, int index, intptr_t value) { @@ -1248,8 +1248,8 @@ } static Klass *receiver_unchecked(DataLayout* layout, uint row) { - oop recv = oop_at(layout, receiver_cell_index(row)); - return (Klass *)recv; + Klass* recv = (Klass*)layout->cell_at(receiver_cell_index(row)); + return recv; } static void increment_receiver_count_no_overflow(DataLayout* layout, Klass *rcvr) {