Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synchronized 章节中 对 MarkWord 锁类型标记的描述错误 #7

Open
zhangyaqi96 opened this issue Nov 23, 2021 · 0 comments
Open

Comments

@zhangyaqi96
Copy link

HotSpot(JDK8) 中对于 MarkWord 锁标识的分类为:001-无锁、101-偏向锁、00-轻量级锁、10-膨胀(重量级锁)、11-GC标记

PDF 原文中对于无锁和偏向锁标识的错误描述为:101 为无锁、001 为偏向锁

PDF 原文内容错误信息为标红位置:
271637635936_ pic_hd

HotSpot(JDK8) 源码注释内容:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant