1.1 --- a/src/share/vm/opto/macro.cpp Wed Sep 10 16:06:53 2014 -0700 1.2 +++ b/src/share/vm/opto/macro.cpp Sat Aug 02 07:06:08 2014 +0200 1.3 @@ -699,6 +699,7 @@ 1.4 ciType* elem_type; 1.5 1.6 Node* res = alloc->result_cast(); 1.7 + assert(res == NULL || res->is_CheckCastPP(), "unexpected AllocateNode result"); 1.8 const TypeOopPtr* res_type = NULL; 1.9 if (res != NULL) { // Could be NULL when there are no users 1.10 res_type = _igvn.type(res)->isa_oopptr(); 1.11 @@ -1031,6 +1032,8 @@ 1.12 return false; 1.13 } 1.14 1.15 + assert(boxing->result_cast() == NULL, "unexpected boxing node result"); 1.16 + 1.17 extract_call_projections(boxing); 1.18 1.19 const TypeTuple* r = boxing->tf()->range();