Tag

biased lock

1 views collected around this technical thread.

Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Jan 15, 2020 · Fundamentals

Inside JVM: How synchronized Locks Work, From Biased to Heavyweight

This article explains the JVM's synchronized lock implementation, detailing where lock data is stored, the different lock states (no lock, biased, lightweight, heavyweight), the source code for lock acquisition and release, and the optimization strategies used to improve performance.

JVMJava concurrencyLock
0 likes · 10 min read
Inside JVM: How synchronized Locks Work, From Biased to Heavyweight
Java Captain
Java Captain
Feb 28, 2019 · Fundamentals

Understanding the Implementation of Java synchronized: Biased, Lightweight, and Heavyweight Locks

This article provides a comprehensive analysis of the HotSpot JVM's synchronized implementation, covering the object header, the three lock states (biased, lightweight, heavyweight), their acquisition and release processes, bytecode details, and the conditions that trigger lock upgrades and optimizations.

ConcurrencyJVMbiased lock
0 likes · 15 min read
Understanding the Implementation of Java synchronized: Biased, Lightweight, and Heavyweight Locks