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
8259339: AllocateUninitializedArray C2 intrinsic fails with void.class input #1965
Conversation
|
@TobiHartmann The following label 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 list. If you would like to change these labels, use the /label pull request command. |
@TobiHartmann 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 6 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
|
Thanks Vladimir! |
/integrate |
Thanks Christian! |
@TobiHartmann Since your change was applied there have been 6 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 0e6de4e. |
Since JDK-8150465,
LibraryCallKit::inline_unsafe_newArray
is also used by the_allocateUninitializedArray
intrinsic. To handle avoid.class
input, a runtime (slow) call to the intrinsified method is emitted. We hit a guarantee ingenerate_method_call_static
because a wrong intrinsic id is passed. Also, the call toUnsafe.allocateUninitializedArray0
should be virtual.I found this when running Valhalla stress testing with
-XX:PerMethodTrapLimit=0
but it easily reproduces without (see modified test).Thanks,
Tobias
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/1965/head:pull/1965
$ git checkout pull/1965