hotspot/src/share/vm/opto/macro.cpp
changeset 25935 59b08808cb9c
parent 25926 486f1571b70f
child 26166 4b49fd58bbd9
--- a/hotspot/src/share/vm/opto/macro.cpp	Wed Aug 06 21:21:25 2014 +0400
+++ b/hotspot/src/share/vm/opto/macro.cpp	Sat Aug 02 07:06:08 2014 +0200
@@ -702,6 +702,7 @@
   ciType* elem_type;
 
   Node* res = alloc->result_cast();
+  assert(res == NULL || res->is_CheckCastPP(), "unexpected AllocateNode result");
   const TypeOopPtr* res_type = NULL;
   if (res != NULL) { // Could be NULL when there are no users
     res_type = _igvn.type(res)->isa_oopptr();
@@ -1037,6 +1038,8 @@
     return false;
   }
 
+  assert(boxing->result_cast() == NULL, "unexpected boxing node result");
+
   extract_call_projections(boxing);
 
   const TypeTuple* r = boxing->tf()->range();