8350303: ARM32: StubCodeGenerator::verify_stub(StubGenStubId) failed after JDK-8343767#23687
8350303: ARM32: StubCodeGenerator::verify_stub(StubGenStubId) failed after JDK-8343767#23687shqking wants to merge 2 commits intoopenjdk:masterfrom
Conversation
…after JDK-8343767 We encountered the following runtime error on ARM32: ``` assert(StubRoutines::stub_to_blob(stub_id) == blob_id()) failed: wrong blob initial for generation of stub atomic_add ``` I suppose it might be a mistake in JDK-8343767. "atomic_add" stub belongs to initial stubs, but it is set as compiler stub in JDK-8343767. Note that only ARM32 is affected as only ARM32 defines this stub.
|
👋 Welcome back haosun! A progress list of the required criteria for merging this PR into |
|
@shqking This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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 7 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 ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
|
I noticed this issue too. Thanks for fixing that. |
|
Yes, this fix is needed. atomic_add is only used in linux-arm-specific code and is needed during VM startup. It was moved into the compiler blob by mistake and hsodl really be declared as an initial stub. |
|
Thanks for your reviews. /integrate |
|
Going to push as commit 86d0616.
Your commit was automatically rebased without conflicts. |
We encountered the following runtime error on ARM32:
I suppose it might be a mistake in JDK-8343767.
atomic_addstub belongs to initial stubs, but it is set as compiler stub in JDK-8343767.Note that only ARM32 is affected as only ARM32 defines this stub.
Tests: cross-build for
arm32, ppc64, riscv64, s390xpassed. Tier1~3 passed on Linux/AArch64 and Linux/x86_64Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23687/head:pull/23687$ git checkout pull/23687Update a local copy of the PR:
$ git checkout pull/23687$ git pull https://git.openjdk.org/jdk.git pull/23687/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23687View PR using the GUI difftool:
$ git pr show -t 23687Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23687.diff
Using Webrev
Link to Webrev Comment