src/share/vm/opto/lcm.cpp

changeset 5111
70120f47d403
parent 4691
571076d3c79d
child 5509
d1034bd8cefc
child 6441
d2907f74462e
     1.1 --- a/src/share/vm/opto/lcm.cpp	Wed May 08 15:08:01 2013 -0700
     1.2 +++ b/src/share/vm/opto/lcm.cpp	Thu May 09 17:28:04 2013 -0700
     1.3 @@ -219,9 +219,10 @@
     1.4          // cannot reason about it; is probably not implicit null exception
     1.5        } else {
     1.6          const TypePtr* tptr;
     1.7 -        if (UseCompressedOops && Universe::narrow_oop_shift() == 0) {
     1.8 +        if (UseCompressedOops && (Universe::narrow_oop_shift() == 0 ||
     1.9 +                                  Universe::narrow_klass_shift() == 0)) {
    1.10            // 32-bits narrow oop can be the base of address expressions
    1.11 -          tptr = base->bottom_type()->make_ptr();
    1.12 +          tptr = base->get_ptr_type();
    1.13          } else {
    1.14            // only regular oops are expected here
    1.15            tptr = base->bottom_type()->is_ptr();

mercurial