Mercurial > hg > graal-jvmci-8
diff src/share/vm/oops/instanceOop.hpp @ 6848:8e47bac5643a
7054512: Compress class pointers after perm gen removal
Summary: support of compress class pointers in the compilers.
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Tue, 09 Oct 2012 10:11:38 +0200 |
parents | da91efe96a93 |
children | 7944aba7ba41 |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceOop.hpp Mon Oct 08 17:04:00 2012 -0700 +++ b/src/share/vm/oops/instanceOop.hpp Tue Oct 09 10:11:38 2012 +0200 @@ -37,7 +37,9 @@ // If compressed, the offset of the fields of the instance may not be aligned. static int base_offset_in_bytes() { - return UseCompressedKlassPointers ? + // offset computation code breaks if UseCompressedKlassPointers + // only is true + return (UseCompressedOops && UseCompressedKlassPointers) ? klass_gap_offset_in_bytes() : sizeof(instanceOopDesc); }