Request for reviews (S): 6836054: java/util/Arrays/CopyMethods.java fails on solaris-sparc with IllegalArgumentException
Vladimir.Kozlov at Sun.COM
Thu May 7 20:29:04 PDT 2009
Fixed 6836054: java/util/Arrays/CopyMethods.java fails on solaris-sparc with IllegalArgumentException
Escape Analysis requires that allocations should have
exact type (by using CheckCastPP node) for restoring
objects during deoptimization. But reflection allocation
set type to j.l.Object assuming that caller will cast
to exact type. In the failing case there is no cast
to array type so debug info contains incorrect type
(j.l.Object) for scalar replaced array allocation.
It causes the Exception after deoptimization.
Do not mark an allocation as scalar replaceable if
it does not have exact type.
Fix verified (y/n): y, bugs case
More information about the hotspot-compiler-dev