diff src/share/vm/opto/superword.cpp @ 113:ba764ed4b6f2

6420645: Create a vm that uses compressed oops for up to 32gb heapsizes Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author coleenp
date Sun, 13 Apr 2008 17:43:42 -0400
parents a7d0f95410bd
children d1605aabd0a1 1e026f8da827
line wrap: on
line diff
--- a/src/share/vm/opto/superword.cpp	Fri Apr 11 09:56:35 2008 -0400
+++ b/src/share/vm/opto/superword.cpp	Sun Apr 13 17:43:42 2008 -0400
@@ -1424,6 +1424,7 @@
 //---------------------------container_type---------------------------
 // Smallest type containing range of values
 const Type* SuperWord::container_type(const Type* t) {
+  if (t->isa_narrowoop()) t = t->is_narrowoop()->make_oopptr();
   if (t->isa_aryptr()) {
     t = t->is_aryptr()->elem();
   }