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
8293816: CI: ciBytecodeStream::get_klass() is not consistent #10294
Conversation
|
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.
Makes sense.
@iwanowww This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
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.
Good.
Thanks for the reviews, Dean and Vladimir. /integrate |
Going to push as commit 746f5f5.
Your commit was automatically rebased without conflicts. |
CI responses should be consistent during a single compilation.
JDK-8293044 was fixed by turning inaccessible classes into unloaded ones when resolving them through CI.
But there's another case when
ciEnv::get_klass_by_index()
returns a loaded ciKlass while settingwill_link
tofalse
: a not-yet-resolved klass revealed through a class loader constraint.In such case, after a concurrent class loading CI will start reporting a loaded ciKlass instance. Such inconsistency may trigger some paradoxical situations during compilation.
The fix is to instantiate a proper instance of an unloaded ciKlass, so further requests will return the unloaded instances as well.
Testing: hs-tier1 - hs-tier4
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10294/head:pull/10294
$ git checkout pull/10294
Update a local copy of the PR:
$ git checkout pull/10294
$ git pull https://git.openjdk.org/jdk pull/10294/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10294
View PR using the GUI difftool:
$ git pr show -t 10294
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10294.diff