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

关于偏向锁升级为轻量级锁的疑问 #30

Open
Etherealss opened this issue Mar 23, 2022 · 0 comments
Open

关于偏向锁升级为轻量级锁的疑问 #30

Etherealss opened this issue Mar 23, 2022 · 0 comments

Comments

@Etherealss
Copy link

请问,原文中提到偏向锁在发生竞争时,会在全局安全点撤销。撤销之后原来持有偏向锁的线程继续执行任务时,还持有锁吗?持有的是轻量级锁?如果是轻量级锁,那么它的上锁过程是在偏向锁撤销后立即发生的吗?

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