-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8317466: Enable interpreter oopMapCache for concurrent GCs #16074
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
Conversation
|
👋 Welcome back zgu! A progress list of the required criteria for merging this PR into |
|
@zhengyu123 The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
|
/cc add hotspot-runtime |
|
@zhengyu123 |
|
@zhengyu123 |
Webrevs
|
leelamv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before of this change, VM_Operations which enabled "is_gc_active" and walks stack to collect roots had a call to OopMapCache::cleanup_old_entries() in its corresponding doit_epilogue(). This is to free the old entries which are collected during safepoint.
Now scope of the change isn't clear.
We seem to extend them to concurrent GCs during their concurrent phases (Not just safepoints of concurrent GCs). Calling OopMapCache::cleanup_old_entries() in doit_epilogue() would effectively cleanup old entries accumulated during concurrent phase of the GC and also during safepoint.
But change also allows java threads to accumulate old entries. When/Who calls cleanup_old_entries() in this case ? These needs to wait until future GC which does cleanup in doit_epilogue(). However, at least theoretically, we can have large time windows without GCs. Old entries accumulated by java threads can be seen as a leak (until next GC)
A separate thought to make change simpler. Can cleanup_old_entries become a list of Cleanup tasks VM thread does during cleanup phase.
Yes, it could accumulate a few. But from what I saw, there are not many. They are cleanup by:
No. There is no point to add safepoint latency when it can be done outside of safepoint. |
|
@zhengyu123 This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
@zhengyu123 This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
Interpreter oop maps are computed lazily during GC root scan and they are expensive to compute.
GCs uses a small hash table per instance class to cache computed oop maps during STW root scan, but not for concurrent root scan.
This patch is intended to enable
OopMapCachefor concurrent GCs.Test:
tier1 and tier2 fastdebug and release on MacOSX, Linux 86_84 and Linux 86_32.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16074/head:pull/16074$ git checkout pull/16074Update a local copy of the PR:
$ git checkout pull/16074$ git pull https://git.openjdk.org/jdk.git pull/16074/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 16074View PR using the GUI difftool:
$ git pr show -t 16074Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16074.diff
Webrev
Link to Webrev Comment