8308745: ObjArrayKlass::allocate_objArray_klass may call into java while holding a lock#17660
Closed
coleenp wants to merge 2 commits intoopenjdk:masterfrom
Closed
8308745: ObjArrayKlass::allocate_objArray_klass may call into java while holding a lock#17660coleenp wants to merge 2 commits intoopenjdk:masterfrom
coleenp wants to merge 2 commits intoopenjdk:masterfrom
Conversation
…ile holding a lock
|
👋 Welcome back coleenp! A progress list of the required criteria for merging this PR into |
dholmes-ora
reviewed
Feb 1, 2024
Contributor
Author
|
I'm going to do a bit of rework as discussed with @dholmes-ora . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change uses a claim token to allocate multi dimensional arrays rather than holding MultiArray_lock around metaspace allocation. We can't hold a mutex around metaspace allocation because it can create an OOM object and it can also call into JVMTI for a resource exhausted event. Also, we were creating mirrors and more metadata arrays while holding this lock. See the bug for more details and other ideas considered and rejected.
Tested with tier1-7.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17660/head:pull/17660$ git checkout pull/17660Update a local copy of the PR:
$ git checkout pull/17660$ git pull https://git.openjdk.org/jdk.git pull/17660/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17660View PR using the GUI difftool:
$ git pr show -t 17660Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17660.diff
Webrev
Link to Webrev Comment