Tagged articles
3 articles
Page 1 of 1
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.

JVMLockMonitor
0 likes · 20 min read
Understanding Java Object Memory Layout, Monitor, and Synchronization Mechanisms
Java Backend Technology
Java Backend Technology
Oct 10, 2016 · Fundamentals

Handles vs Direct Pointers: How Java Accesses Objects Efficiently

This article explains Java's object access mechanisms, detailing how references in the stack point to objects in the heap and type data in the method area, and compares the handle pool approach with direct pointer access, highlighting their respective performance and GC advantages.

Direct PointersMemory ManagementObject Memory Layout
0 likes · 4 min read
Handles vs Direct Pointers: How Java Accesses Objects Efficiently