# Running 64-bit HotSpot VM. # Using compressed oop with3-bit shift. # Using compressed klass with3-bit shift. # WARNING | Compressed references base/shifts are guessed by the experiment! # WARNING | Therefore, computed addresses are just guesses, and ARE NOT RELIABLE. # WARNING | Make sure to attach Serviceability Agent to get the reliable addresses. # Objects are 8 bytes aligned. # Field sizes by type: 4, 1, 1, 2, 2, 4, 4, 8, 8 [bytes] # Array element sizes: 4, 1, 1, 2, 2, 4, 4, 8, 8 [bytes]
**** int[0] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 0 12 4 (alignment/paddinggap) 16 0 int [I.<elements> N/A Instancesize: 16 bytes Spacelosses: 4 bytesinternal + 0 bytesexternal= 4 bytes total
**** int[1] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 1 12 4 (alignment/paddinggap) 16 4 int [I.<elements> N/A 20 4 (objectalignmentgap) Instancesize: 24 bytes Spacelosses: 4 bytesinternal + 4 bytesexternal= 8 bytes total
**** int[2] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 2 12 4 (alignment/paddinggap) 16 8 int [I.<elements> N/A Instancesize: 24 bytes Spacelosses: 4 bytesinternal + 0 bytesexternal= 4 bytes total
**** int[3] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 3 12 4 (alignment/paddinggap) 16 12 int [I.<elements> N/A 28 4 (objectalignmentgap) Instancesize: 32 bytes Spacelosses: 4 bytesinternal + 4 bytesexternal= 8 bytes total
**** int[4] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 4 12 4 (alignment/paddinggap) 16 16 int [I.<elements> N/A Instancesize: 32 bytes Spacelosses: 4 bytesinternal + 0 bytesexternal= 4 bytes total
**** int[5] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 5 12 4 (alignment/paddinggap) 16 20 int [I.<elements> N/A 36 4 (objectalignmentgap) Instancesize: 40 bytes Spacelosses: 4 bytesinternal + 4 bytesexternal= 8 bytes total
**** int[6] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 6 12 4 (alignment/paddinggap) 16 24 int [I.<elements> N/A Instancesize: 40 bytes Spacelosses: 4 bytesinternal + 0 bytesexternal= 4 bytes total
**** int[7] [I object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000001 (non-biasable; age: 0) 84 (object header: class) 0xf800016d 12 4 (arraylength) 7 12 4 (alignment/paddinggap) 16 28 int [I.<elements> N/A 44 4 (objectalignmentgap) Instancesize: 48 bytes Spacelosses: 4 bytesinternal + 4 bytesexternal= 8 bytes total