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

JVM源码阅读方式 #28

Open
Berries-Wang opened this issue Aug 7, 2021 · 0 comments
Open

JVM源码阅读方式 #28

Berries-Wang opened this issue Aug 7, 2021 · 0 comments

Comments

@Berries-Wang
Copy link

Berries-Wang commented Aug 7, 2021

JVM源码阅读

在阅读JVM源码的时候,有很多地方都看不懂,但是又查询不到相关资料。如

CASE(_monitorenter): {
  // lockee 就是锁对象
  oop lockee = STACK_OBJECT(-1);
  // derefing's lockee ought to provoke implicit null check
  CHECK_NULL(lockee);
  // code 1:找到一个空闲的Lock Record
  BasicObjectLock* limit = istate->monitor_base();
.......

如代码中的指针istate就不是很明白是什么意思,导致代码阅读很艰难。大佬有什么学习心得或者学习方法吗,是否可以传授一些经验呢

十分感谢

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