diff -r 9d3abb1b7b1f -r 35ebea32a23c src/hotspot/share/code/nmethod.hpp --- a/src/hotspot/share/code/nmethod.hpp Mon Nov 05 12:36:23 2018 +0100 +++ b/src/hotspot/share/code/nmethod.hpp Mon Nov 05 12:36:23 2018 +0100 @@ -365,7 +365,7 @@ // Support for oops in scopes and relocs: // Note: index 0 is reserved for null. - oop oop_at(int index) const { return index == 0 ? (oop) NULL: *oop_addr_at(index); } + oop oop_at(int index) const; oop* oop_addr_at(int index) const { // for GC // relocation indexes are biased by 1 (because 0 is reserved) assert(index > 0 && index <= oops_count(), "must be a valid non-zero index");