src/share/vm/oops/instanceOop.hpp

changeset 4159
8e47bac5643a
parent 4037
da91efe96a93
child 5694
7944aba7ba41
     1.1 --- a/src/share/vm/oops/instanceOop.hpp	Mon Oct 08 17:04:00 2012 -0700
     1.2 +++ b/src/share/vm/oops/instanceOop.hpp	Tue Oct 09 10:11:38 2012 +0200
     1.3 @@ -37,7 +37,9 @@
     1.4  
     1.5    // If compressed, the offset of the fields of the instance may not be aligned.
     1.6    static int base_offset_in_bytes() {
     1.7 -    return UseCompressedKlassPointers ?
     1.8 +    // offset computation code breaks if UseCompressedKlassPointers
     1.9 +    // only is true
    1.10 +    return (UseCompressedOops && UseCompressedKlassPointers) ?
    1.11               klass_gap_offset_in_bytes() :
    1.12               sizeof(instanceOopDesc);
    1.13    }

mercurial