# 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_14_FatLocking$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
**** Before the lock org.openjdk.jol.samples.JOLSample_14_FatLocking$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007feb4d081005 (biased: 0x0000001ffad34204; epoch: 0; age: 0) 84 (object header: class) 0xf80121e5 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
**** With the lock org.openjdk.jol.samples.JOLSample_14_FatLocking$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007feb5180be8a (fat lock: 0x00007feb5180be8a) 84 (object header: class) 0xf80121e5 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
**** After the lock org.openjdk.jol.samples.JOLSample_14_FatLocking$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007feb5180be8a (fat lock: 0x00007feb5180be8a) 84 (object header: class) 0xf80121e5 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total
**** After System.gc() org.openjdk.jol.samples.JOLSample_14_FatLocking$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x0000000000000009 (non-biasable; age: 1) 84 (object header: class) 0xf80121e5 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total