Skip to content

Conversation

@voitylov
Copy link

@voitylov voitylov commented Dec 7, 2023

Thanks to @matias9927, JDK-8320278 fixed the JDK build for ARM32 after JDK-8301997. This PR introduces some additional fixes that enable the ARM32 port to actually work.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8321515: ARM32: Move method resolution information out of the cpCache properly (Bug - P2)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17017/head:pull/17017
$ git checkout pull/17017

Update a local copy of the PR:
$ git checkout pull/17017
$ git pull https://git.openjdk.org/jdk.git pull/17017/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 17017

View PR using the GUI difftool:
$ git pr show -t 17017

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17017.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 7, 2023

👋 Welcome back avoitylov! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 7, 2023
@openjdk
Copy link

openjdk bot commented Dec 7, 2023

@voitylov The following label will be automatically applied to this pull request:

  • hotspot

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.

@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Dec 7, 2023
@mlbridge
Copy link

mlbridge bot commented Dec 7, 2023

Webrevs

@bulasevich
Copy link
Contributor

Thanks for fixing the ARM32 build!
I see the change fixes wrong offset and register usage and does some cleanup. It is OK for me.
Thanks again!

@voitylov
Copy link
Author

thanks @bulasevich. Any Reviewers, please? I'd like to to get the ARM32 port to work again.

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay, but I have suggestions.

ldr(cache, Address(cache, ConstantPoolCache::method_entries_offset()));
add(cache, cache, Array<ResolvedMethodEntry>::base_offset_in_bytes());
add(cache, cache, index);
if (is_power_of_2(sizeof(ResolvedMethodEntry))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually dislike introducing split like these, because one of the branches is effectively dead. Which also means it is effectively untested. Given this interpreter code, can we just leave the generic version unconditionally?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's gone in the new version.

Comment on lines 317 to 318
}
else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
else {
} else {

@shipilev
Copy link
Member

Also changed target-version to 23 in JBS, so that we don't create the backports when we push. You might want to pull and merge the new master to get new mainline with jcheck config for 23.

@openjdk
Copy link

openjdk bot commented Dec 11, 2023

@voitylov 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:

8321515: ARM32: Move method resolution information out of the cpCache properly

Reviewed-by: shade

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 12 new commits pushed to the master branch:

  • 8a0a6f8: 8321279: Implement hashCode() in Heap-X-Buffer.java.template
  • 3d9d353: 8321825: Remove runtime/CompressedOops/CompressedClassPointers.java from the ProblemList
  • 1b621f5: 8321474: TestAutoCreateSharedArchiveUpgrade.java should be updated with JDK 21
  • 5463c9c: 8321557: Move SOURCE line verification for OracleJDK out of OpenJDK
  • ac07355: 8320200: Use Elements predicates for record constructors to improve print output
  • 4fb5c12: 8321180: Condition for non-latin1 string size too large exception is off by one
  • d5a96e3: 8321621: Update JCov version to 3.0.16
  • aadf368: 6230751: [Fmt-Ch] Recursive MessageFormats in ChoiceFormats ignore indicated subformats
  • a3447ec: 8321827: Remove unnecessary suppress warnings annotations from the printing processor
  • b25ed57: 8270269: Desktop.browse method fails if earlier CoInitialize call as COINIT_MULTITHREADED
  • ... and 2 more: https://git.openjdk.org/jdk/compare/c51685267c7bd5a7cee27ebc2bf0d9899cda9d4c...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@shipilev) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 11, 2023
Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still good.

@matias9927
Copy link
Contributor

Thanks for this fix @voitylov!

@voitylov
Copy link
Author

/integrate

@voitylov
Copy link
Author

Thanks again Boris, Matias and Aleksey!

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Dec 13, 2023
@openjdk
Copy link

openjdk bot commented Dec 13, 2023

@voitylov
Your change (at version df04613) is now ready to be sponsored by a Committer.

@shipilev
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Dec 13, 2023

Going to push as commit f573f6d.
Since your change was applied there have been 12 commits pushed to the master branch:

  • 8a0a6f8: 8321279: Implement hashCode() in Heap-X-Buffer.java.template
  • 3d9d353: 8321825: Remove runtime/CompressedOops/CompressedClassPointers.java from the ProblemList
  • 1b621f5: 8321474: TestAutoCreateSharedArchiveUpgrade.java should be updated with JDK 21
  • 5463c9c: 8321557: Move SOURCE line verification for OracleJDK out of OpenJDK
  • ac07355: 8320200: Use Elements predicates for record constructors to improve print output
  • 4fb5c12: 8321180: Condition for non-latin1 string size too large exception is off by one
  • d5a96e3: 8321621: Update JCov version to 3.0.16
  • aadf368: 6230751: [Fmt-Ch] Recursive MessageFormats in ChoiceFormats ignore indicated subformats
  • a3447ec: 8321827: Remove unnecessary suppress warnings annotations from the printing processor
  • b25ed57: 8270269: Desktop.browse method fails if earlier CoInitialize call as COINIT_MULTITHREADED
  • ... and 2 more: https://git.openjdk.org/jdk/compare/c51685267c7bd5a7cee27ebc2bf0d9899cda9d4c...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 13, 2023
@openjdk openjdk bot closed this Dec 13, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Dec 13, 2023
@openjdk
Copy link

openjdk bot commented Dec 13, 2023

@shipilev @voitylov Pushed as commit f573f6d.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@voitylov
Copy link
Author

/backport jdk22

@openjdk
Copy link

openjdk bot commented Dec 18, 2023

@voitylov the backport was successfully created on the branch backport-voitylov-f573f6d2 in my personal fork of openjdk/jdk22. To create a pull request with this backport targeting openjdk/jdk22:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit f573f6d2 from the openjdk/jdk repository.

The commit being backported was authored by Aleksei Voitylov on 13 Dec 2023 and was reviewed by Aleksey Shipilev.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk22:

$ git fetch https://github.com/openjdk-bots/jdk22.git backport-voitylov-f573f6d2:backport-voitylov-f573f6d2
$ git checkout backport-voitylov-f573f6d2
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk22.git backport-voitylov-f573f6d2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot hotspot-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants