Tue, 08 Sep 2009 10:42:50 -0700
6875619: CTW fails with /hotspot/src/share/vm/opto/type.hpp
Summary: In load_array_length() cast array's type to TypeOopPtr when calling make_ideal_length() method.
Reviewed-by: never
src/share/vm/opto/graphKit.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/opto/graphKit.cpp Mon Aug 31 17:07:53 2009 -0700 1.2 +++ b/src/share/vm/opto/graphKit.cpp Tue Sep 08 10:42:50 2009 -0700 1.3 @@ -1088,7 +1088,7 @@ 1.4 alen = _gvn.transform( new (C, 3) LoadRangeNode(0, immutable_memory(), r_adr, TypeInt::POS)); 1.5 } else { 1.6 alen = alloc->Ideal_length(); 1.7 - Node* ccast = alloc->make_ideal_length(_gvn.type(array)->is_aryptr(), &_gvn); 1.8 + Node* ccast = alloc->make_ideal_length(_gvn.type(array)->is_oopptr(), &_gvn); 1.9 if (ccast != alen) { 1.10 alen = _gvn.transform(ccast); 1.11 }