src/share/vm/oops/arrayOop.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
6703888 Cdiff src/share/vm/oops/arrayOop.hpp
src/share/vm/oops/arrayOop.hpp
Print this page
*** 39,53 ****
// Interpreter/Compiler offsets
// Header size computation.
// The header is considered the oop part of this type plus the length.
// Returns the aligned header_size_in_bytes. This is not equivalent to
! // sizeof(arrayOopDesc) which should not appear in the code, except here.
static int header_size_in_bytes() {
! size_t hs = UseCompressedOops ?
! sizeof(arrayOopDesc) :
! align_size_up(sizeof(arrayOopDesc) + sizeof(int), HeapWordSize);
#ifdef ASSERT
// make sure it isn't called before UseCompressedOops is initialized.
static size_t arrayoopdesc_hs = 0;
if (arrayoopdesc_hs == 0) arrayoopdesc_hs = hs;
assert(arrayoopdesc_hs == hs, "header size can't change");
--- 39,52 ----
// Interpreter/Compiler offsets
// Header size computation.
// The header is considered the oop part of this type plus the length.
// Returns the aligned header_size_in_bytes. This is not equivalent to
! // sizeof(arrayOopDesc) which should not appear in the code.
static int header_size_in_bytes() {
! size_t hs = align_size_up(length_offset_in_bytes() + sizeof(int),
! HeapWordSize);
#ifdef ASSERT
// make sure it isn't called before UseCompressedOops is initialized.
static size_t arrayoopdesc_hs = 0;
if (arrayoopdesc_hs == 0) arrayoopdesc_hs = hs;
assert(arrayoopdesc_hs == hs, "header size can't change");
src/share/vm/oops/arrayOop.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File