changeset 1010:0f1c19b7a52d

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
author kvn
date Tue, 08 Sep 2009 10:42:50 -0700
parents ff1a29907b6c
children 26fbe81d30cf
files src/share/vm/opto/graphKit.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp	Mon Aug 31 17:07:53 2009 -0700
+++ b/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);
     }