6875619: CTW fails with /hotspot/src/share/vm/opto/type.hpp
authorkvn
Tue, 08 Sep 2009 10:42:50 -0700
changeset 3801 073b203064b8
parent 3800 3195b4844b5a
child 3802 38c0c1983af4
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
hotspot/src/share/vm/opto/graphKit.cpp
--- a/hotspot/src/share/vm/opto/graphKit.cpp	Mon Aug 31 17:07:53 2009 -0700
+++ b/hotspot/src/share/vm/opto/graphKit.cpp	Tue Sep 08 10:42:50 2009 -0700
@@ -1088,7 +1088,7 @@
     alen = _gvn.transform( new (C, 3) LoadRangeNode(0, immutable_memory(), r_adr, TypeInt::POS));
   } else {
     alen = alloc->Ideal_length();
-    Node* ccast = alloc->make_ideal_length(_gvn.type(array)->is_aryptr(), &_gvn);
+    Node* ccast = alloc->make_ideal_length(_gvn.type(array)->is_oopptr(), &_gvn);
     if (ccast != alen) {
       alen = _gvn.transform(ccast);
     }