# 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 examples.JOLSample_12_ThinLocking$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 examples.JOLSample_12_ThinLocking$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007f85e6809005 (biased: 0x0000001fe179a024; 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 examples.JOLSample_12_ThinLocking$A object internals: OFF SZ TYPE DESCRIPTION VALUE 08 (object header: mark) 0x00007f85e6809005 (biased: 0x0000001fe179a024; epoch: 0; age: 0) 84 (object header: class) 0xf80121fa 12 4 (objectalignmentgap) Instancesize: 16 bytes Spacelosses: 0 bytesinternal + 4 bytesexternal= 4 bytes total