Tag

Mark Word

1 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Sep 1, 2021 · Fundamentals

Understanding Java Object Memory Layout with JOL

This article explains how Java objects are stored in memory, covering the object header, instance data, alignment padding, lock states, pointer compression, and field reordering, and demonstrates how to inspect these structures using the OpenJDK JOL tool with practical code examples.

JOLJVMMark Word
0 likes · 20 min read
Understanding Java Object Memory Layout with JOL