Tag

Object Memory Layout

0 views collected around this technical thread.

JD Retail Technology
JD Retail Technology
Feb 21, 2023 · Fundamentals

Understanding Java Object Memory Layout, Monitor, and Synchronization Mechanisms

This article explains the JVM object memory layout—including object header, instance data, and alignment padding—details the structure of the Mark Word and Klass Word, describes how monitors and the synchronized keyword work at the bytecode level, and covers lock states, inflation, bias revocation, and spin optimizations with practical code examples.

ConcurrencyJVMJava
0 likes · 20 min read
Understanding Java Object Memory Layout, Monitor, and Synchronization Mechanisms
Architect's Tech Stack
Architect's Tech Stack
Sep 29, 2021 · Fundamentals

Understanding Java Object Memory Layout, Size of new Object() and Heap Allocation

This article explains how Java objects are laid out in memory, compares the heap locations of fields and local variables, analyzes the byte size of a plain new Object() with and without compressed oops, demonstrates measurement using JOL, and reviews related heap regions and garbage‑collection concepts.

Garbage CollectionJVMJava
0 likes · 13 min read
Understanding Java Object Memory Layout, Size of new Object() and Heap Allocation