Mercurial > hg > graal-compiler
diff src/share/vm/opto/callnode.hpp @ 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 | 2a9af0b9cb1c |
children | 7793bd37a336 |
line wrap: on
line diff
--- a/src/share/vm/opto/callnode.hpp Fri Apr 11 09:56:35 2008 -0400 +++ b/src/share/vm/opto/callnode.hpp Sun Apr 13 17:43:42 2008 -0400 @@ -725,7 +725,8 @@ // Conservatively small estimate of offset of first non-header byte. int minimum_header_size() { - return is_AllocateArray() ? sizeof(arrayOopDesc) : sizeof(oopDesc); + return is_AllocateArray() ? arrayOopDesc::base_offset_in_bytes(T_BYTE) : + instanceOopDesc::base_offset_in_bytes(); } // Return the corresponding initialization barrier (or null if none).