Skip to content

Instantly share code, notes, and snippets.

View Mehraj123's full-sized avatar
🐢
Focusing

Mehraj Malik Mehraj123

🐢
Focusing
View GitHub Profile
@arturmkrtchyan
arturmkrtchyan / ObjectHeader32.txt
Last active October 7, 2024 03:11
Java Object Header
|----------------------------------------------------------------------------------------|--------------------|
| Object Header (64 bits) | State |
|-------------------------------------------------------|--------------------------------|--------------------|
| Mark Word (32 bits) | Klass Word (32 bits) | |
|-------------------------------------------------------|--------------------------------|--------------------|
| identity_hashcode:25 | age:4 | biased_lock:1 | lock:2 | OOP to metadata object | Normal |
|-------------------------------------------------------|--------------------------------|--------------------|
| thread:23 | epoch:2 | age:4 | biased_lock:1 | lock:2 | OOP to metadata object | Biased |
|-------------------------------------------------------|--------------------------------|--------------------|
|