--- a/hotspot/src/share/vm/opto/graphKit.cpp Mon Mar 28 21:21:41 2016 +0800
+++ b/hotspot/src/share/vm/opto/graphKit.cpp Fri Mar 18 12:50:17 2016 +0100
@@ -1686,6 +1686,9 @@
const Type* elemtype = arytype->elem();
BasicType elembt = elemtype->array_element_basic_type();
Node* adr = array_element_address(ary, idx, elembt, arytype->size());
+ if (elembt == T_NARROWOOP) {
+ elembt = T_OBJECT; // To satisfy switch in LoadNode::make()
+ }
Node* ld = make_load(ctl, adr, elemtype, elembt, arytype, MemNode::unordered);
return ld;
}