Request for reviews (XS): 6875619
Vladimir.Kozlov at Sun.COM
Fri Aug 28 10:46:07 PDT 2009
It is user method asks for length and we generate inline_native_getLength()
intrinsic for it which calls load_array_length(array).
Tom Rodriguez wrote:
> Why are we asking for the length of something which either isn't an
> array or hasn't properly cast to be an array yet?
> On Aug 27, 2009, at 6:43 PM, Vladimir Kozlov wrote:
>> Fixed 6875619: CTW fails with /hotspot/src/share/vm/opto/type.hpp
>> GraphKit::load_array_length() tries to cast type of new allocated
>> array to TypeAryPtr. It fails since it is reflection allocation
>> and type is Object.
>> Cast to TypeOopPtr which is the parameter type of
>> make_ideal_length() method.
>> Reviewed by:
>> Fix verified (y/n): y, test
>> Other testing:
More information about the hotspot-compiler-dev