src/share/vm/opto/library_call.cpp

changeset 1385
8fe1963e3964
parent 1337
fc2281ddce3c
child 1393
c7e94e8fff43
     1.1 --- a/src/share/vm/opto/library_call.cpp	Thu Aug 27 06:17:23 2009 -0700
     1.2 +++ b/src/share/vm/opto/library_call.cpp	Fri Aug 28 11:19:33 2009 -0700
     1.3 @@ -3894,6 +3894,7 @@
     1.4    assert(obj_size != NULL, "");
     1.5    Node* raw_obj = alloc_obj->in(1);
     1.6    assert(alloc_obj->is_CheckCastPP() && raw_obj->is_Proj() && raw_obj->in(0)->is_Allocate(), "");
     1.7 +  assert(alloc_obj->as_CheckCastPP()->type() != TypeInstPtr::NOTNULL, "should be more precise than Object");
     1.8  
     1.9    if (ReduceBulkZeroing) {
    1.10      // We will be completely responsible for initializing this object -
    1.11 @@ -4447,6 +4448,7 @@
    1.12      InitializeNode* init = alloc->initialization();
    1.13      assert(init->is_complete(), "we just did this");
    1.14      assert(dest->is_CheckCastPP(), "sanity");
    1.15 +    assert(dest->as_CheckCastPP()->type() != TypeInstPtr::NOTNULL, "type should be more precise than Object");
    1.16      assert(dest->in(0)->in(0) == init, "dest pinned");
    1.17  
    1.18      // Cast to Object for arraycopy.

mercurial