Skip to content

8300489: Use ArraysSupport.vectorizedHashCode in j.l.CharacterName #12068

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

Closed
wants to merge 1 commit into from

Conversation

cl4es
Copy link
Member

@cl4es cl4es commented Jan 18, 2023

This patch makes use of ArraysSupport.vectorizedHashCode and helps verify the performance win also for range-based hash calculations. Also modernized and cleaned up the surrounding code somewhat.

Benchmark                          Mode  Cnt    Score   Error  Units
Characters.CodePoints.codePointOf  avgt   15  153.753 ± 6.119  ns/op
Characters.CodePoints.codePointOf  avgt   15  134.753 ± 4.386  ns/op # after, 1.14x

For C1 and C2 on non-x86 platforms the performance is neutral. Interpreter sees a 1-2% regression due a few added calls.


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-8300489: Use ArraysSupport.vectorizedHashCode in j.l.CharacterName

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 12068

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 18, 2023

👋 Welcome back redestad! 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 Jan 18, 2023
@openjdk
Copy link

openjdk bot commented Jan 18, 2023

@cl4es The following labels will be automatically applied to this pull request:

  • core-libs
  • i18n

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added core-libs core-libs-dev@openjdk.org i18n i18n-dev@openjdk.org labels Jan 18, 2023
@mlbridge
Copy link

mlbridge bot commented Jan 18, 2023

Webrevs

@openjdk
Copy link

openjdk bot commented Jan 18, 2023

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

8300489: Use ArraysSupport.vectorizedHashCode in j.l.CharacterName

Reviewed-by: alanb, naoto

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

  • fcbf9d0: 8300243: Replace NULL with nullptr in share/compiler/
  • c205cae: 8297851: Add devkit for RISC-V
  • c3242ee: 8298596: vmTestbase/nsk/sysdict/vm/stress/chain/chain008/chain008.java fails with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
  • b3684f4: 8153837: AArch64: Handle special cases for MaxINode & MinINode
  • 754f6e6: 8300237: Minor improvements in MethodHandles
  • 85d8bac: 8300166: Unused array allocation in ProcessPath.doProcessPath
  • c464ef1: 8292741: Convert JvmtiTagMapTable to ResourceHashtable
  • 1aded82: 8300488: Incorrect usage of CATCH_BAD_ALLOC as a macro call
  • bd5ca95: 8300222: Replace NULL with nullptr in share/logging
  • 15a9186: 8300169: Build failure with clang-15
  • ... and 6 more: https://git.openjdk.org/jdk/compare/89a032dc057d04c996632ad317a0303cf3560852...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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 18, 2023
@cl4es
Copy link
Member Author

cl4es commented Jan 18, 2023

Thanks for reviewing!

/integrate

@openjdk
Copy link

openjdk bot commented Jan 18, 2023

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

  • fcbf9d0: 8300243: Replace NULL with nullptr in share/compiler/
  • c205cae: 8297851: Add devkit for RISC-V
  • c3242ee: 8298596: vmTestbase/nsk/sysdict/vm/stress/chain/chain008/chain008.java fails with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
  • b3684f4: 8153837: AArch64: Handle special cases for MaxINode & MinINode
  • 754f6e6: 8300237: Minor improvements in MethodHandles
  • 85d8bac: 8300166: Unused array allocation in ProcessPath.doProcessPath
  • c464ef1: 8292741: Convert JvmtiTagMapTable to ResourceHashtable
  • 1aded82: 8300488: Incorrect usage of CATCH_BAD_ALLOC as a macro call
  • bd5ca95: 8300222: Replace NULL with nullptr in share/logging
  • 15a9186: 8300169: Build failure with clang-15
  • ... and 6 more: https://git.openjdk.org/jdk/compare/89a032dc057d04c996632ad317a0303cf3560852...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Jan 18, 2023

@cl4es Pushed as commit 3ea0b8b.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org i18n i18n-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants