# HG changeset patch # User kvn # Date 1306266891 25200 # Node ID 4ca3f136aa2322a001c038fa629595b8569a3c1b # Parent a3f4ad8fee9e99173eb18a3ccbf219a0d1049df2 7047300: VM crashes with assert(_base == InstPtr) failed: Not an object pointer Summary: The code incorrectly used is_instptr() instead of is_oopptr() to get const_oop. Reviewed-by: never diff -r a3f4ad8fee9e -r 4ca3f136aa23 hotspot/src/share/vm/opto/output.cpp --- a/hotspot/src/share/vm/opto/output.cpp Sat May 21 13:59:55 2011 -0700 +++ b/hotspot/src/share/vm/opto/output.cpp Tue May 24 12:54:51 2011 -0700 @@ -911,7 +911,7 @@ } } else { const TypePtr *tp = obj_node->bottom_type()->make_ptr(); - scval = new ConstantOopWriteValue(tp->is_instptr()->const_oop()->constant_encoding()); + scval = new ConstantOopWriteValue(tp->is_oopptr()->const_oop()->constant_encoding()); } OptoReg::Name box_reg = BoxLockNode::stack_slot(box_node);