# 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]
**** Fresh object org.openjdk.jol.samples.JOLSample_15_IdentityHashCode$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000005 (biasable; age: 0) 84 (object header: class) 0xf80121e5 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
hashCode: 6073f712
**** After identityHashCode() org.openjdk.jol.samples.JOLSample_15_IdentityHashCode$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000006073f71201 (hash: 0x6073f712; age: 0) 84 (object header: class) 0xf80121e5 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total