--- a/hotspot/src/share/vm/opto/escape.cpp Wed Sep 02 15:11:22 2015 -0700
+++ b/hotspot/src/share/vm/opto/escape.cpp Mon Aug 31 17:20:08 2015 +0200
@@ -3241,7 +3241,7 @@
// Note 2: MergeMem may already contains instance memory slices added
// during find_inst_mem() call when memory nodes were processed above.
igvn->hash_delete(nmm);
- uint nslices = nmm->req();
+ uint nslices = MIN2(nmm->req(), new_index_start);
for (uint i = Compile::AliasIdxRaw+1; i < nslices; i++) {
Node* mem = nmm->in(i);
Node* cur = NULL;