# 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_16_IHC_BL_Conflict$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000005 (biasable; age: 0) 84 (object header: class) 0xf80121fa 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
**** With the lock org.openjdk.jol.samples.JOLSample_16_IHC_BL_Conflict$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007fbe92009005 (biased: 0x0000001fefa48024; epoch: 0; age: 0) 84 (object header: class) 0xf80121fa 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
**** After the lock org.openjdk.jol.samples.JOLSample_16_IHC_BL_Conflict$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007fbe92009005 (biased: 0x0000001fefa48024; epoch: 0; age: 0) 84 (object header: class) 0xf80121fa 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
hashCode: 6073f712
**** After the hashcode org.openjdk.jol.samples.JOLSample_16_IHC_BL_Conflict$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000006073f71201 (hash: 0x6073f712; age: 0) 84 (object header: class) 0xf80121fa 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
**** With the second lock org.openjdk.jol.samples.JOLSample_16_IHC_BL_Conflict$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007000089b39e0 (thin lock: 0x00007000089b39e0) 84 (object header: class) 0xf80121fa 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
**** After the second lock org.openjdk.jol.samples.JOLSample_16_IHC_BL_Conflict$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000006073f71201 (hash: 0x6073f712; age: 0) 84 (object header: class) 0xf80121fa 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total