fuzhengwei / fuzhengwei/interview

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

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.6k
Forks
392
PR merge metrics
No merged PRs in 30d

Description

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

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

PDF 原文内容错误信息为标红位置:
![271637635936_ pic_hd](https://user-images.githubusercontent.com/43985315/142965341-68b74a93-44e9-4cdf-b197-02e1ba21ec89.jpg)

HotSpot(JDK8) 源码注释内容:
![image](https://user-images.githubusercontent.com/43985315/142965685-e495515f-af8e-4c76-8e34-5968f06532df.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.