Request for reviews (S): 6880053

Vladimir Kozlov Vladimir.Kozlov at Sun.COM
Wed Sep 9 15:35:35 PDT 2009


http://cr.openjdk.java.net/~kvn/6880053/webrev.00

Fixed 6880053: assert(alloc_obj->as_CheckCastPP()->type() != TypeInstPtr::NOTNULL)

Problem:
I added this assert in 6875577 fix to catch cases when
the type of the cloned object is TypeInstPtr::NOTNULL
since it will produce incorrect graph.
And Nightly testing found such case: the method
sun.reflect.GeneratedMethodAccessor4.invoke(Object o, Object[] ao)
returns the clone of the Object o argument.

Solution:
Use more general oop type TypeOopPtr::NOTNULL for
additional CheckCastPP node in clone() instrinsic and arraycopy.
Also fix instance_id meet for TypeOopPtr.

Reviewed by:

Fix verified (y/n): y, test

Other testing:
JPRT



More information about the hotspot-compiler-dev mailing list