jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8295009: RISC-V: Interpreter intrinsify Thread.currentThread()

Open yadongw opened this issue 2 years ago • 4 comments

Calling intrinsic version of Thread.currentThread() in interpreter is ~30% faster on the Unmatched board: Before: Benchmark Mode Cnt Score Error Units MyBenchmark.testCurrentThread avgt 5 4665.765 ± 212.906 ns/op After: Benchmark Mode Cnt Score Error Units MyBenchmark.testCurrentThread avgt 5 3381.415 ± 223.005 ns/op

Tier1 and jdk_loom have been tested on unmatched.


Progress

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

Issue

  • JDK-8295009: RISC-V: Interpreter intrinsify Thread.currentThread()

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 10709

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

Using diff file

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

yadongw avatar Oct 14 '22 02:10 yadongw

:wave: Welcome back yadongwang! 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.

bridgekeeper[bot] avatar Oct 14 '22 02:10 bridgekeeper[bot]

@yadongw 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[bot] avatar Oct 14 '22 02:10 openjdk[bot]

Webrevs

mlbridge[bot] avatar Oct 14 '22 02:10 mlbridge[bot]

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

8295009: RISC-V: Interpreter intrinsify Thread.currentThread()

Reviewed-by: fyang, 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 22 new commits pushed to the master branch:

  • e7d0ab227ff86bb65abf7fbeb135ce657454200b: 8295379: ProblemList java/lang/Float/Binary16Conversion.java in Xcomp mode on x64
  • 404e8de1559adade31df98a83919841f080b5b89: 8294865: x86: Improve the code generation of MulVB and MulVL
  • 2087424736f15a5a80a0492993a6cd74da87188a: 8295370: Update java.io.ObjectStreamField to use Class.descriptorString
  • 8487c56f7ea224169d9d42efda9efb824266289f: 8295294: Misc cleanups in runtime/InvocationTests
  • 0043d58c5d52c3b299a4b6dfcec34a7db5041aea: 8293531: C2: some vectorapi tests fail assert "Not monotonic" with flag -XX:TypeProfileLevel=222
  • 2e2a51ee22068e847b36f9a5f20bd37050eaabf8: 8295267: Improve G1 scan to merge ratio calculation
  • dfcd9d538eba4b097083abe19d02d6d019236ac7: 8295320: [BACKOUT] 8276687 Remove support for JDK 1.4.1 PerfData shared memory files
  • 2da079c64e880835c9c0eb36f5e63a7752ebb328: 8294426: Two fingers tap generates wrong mouse modifiers on M2 MacBooks
  • 449b52fd230786e818cdaf5000213ea746802e4d: 8295158: G1: Increase card-based cost sample reporting threshold
  • 312985eea6237d75fae0f3c0cceb4f16e18b73b4: 8295156: G1: Improve constant other time calculation
  • ... and 12 more: https://git.openjdk.org/jdk/compare/2b4830a3959496372719270614a58737cf4deb2f...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 (@RealFYang, @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[bot] avatar Oct 14 '22 04:10 openjdk[bot]

/integrate

yadongw avatar Oct 16 '22 01:10 yadongw

@yadongw Your change (at version 84a0ad8a355d5c73d8502bed1ec55929ccaec686) is now ready to be sponsored by a Committer.

openjdk[bot] avatar Oct 16 '22 01:10 openjdk[bot]

/sponsor

RealFYang avatar Oct 16 '22 10:10 RealFYang

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

  • e7d0ab227ff86bb65abf7fbeb135ce657454200b: 8295379: ProblemList java/lang/Float/Binary16Conversion.java in Xcomp mode on x64
  • 404e8de1559adade31df98a83919841f080b5b89: 8294865: x86: Improve the code generation of MulVB and MulVL
  • 2087424736f15a5a80a0492993a6cd74da87188a: 8295370: Update java.io.ObjectStreamField to use Class.descriptorString
  • 8487c56f7ea224169d9d42efda9efb824266289f: 8295294: Misc cleanups in runtime/InvocationTests
  • 0043d58c5d52c3b299a4b6dfcec34a7db5041aea: 8293531: C2: some vectorapi tests fail assert "Not monotonic" with flag -XX:TypeProfileLevel=222
  • 2e2a51ee22068e847b36f9a5f20bd37050eaabf8: 8295267: Improve G1 scan to merge ratio calculation
  • dfcd9d538eba4b097083abe19d02d6d019236ac7: 8295320: [BACKOUT] 8276687 Remove support for JDK 1.4.1 PerfData shared memory files
  • 2da079c64e880835c9c0eb36f5e63a7752ebb328: 8294426: Two fingers tap generates wrong mouse modifiers on M2 MacBooks
  • 449b52fd230786e818cdaf5000213ea746802e4d: 8295158: G1: Increase card-based cost sample reporting threshold
  • 312985eea6237d75fae0f3c0cceb4f16e18b73b4: 8295156: G1: Improve constant other time calculation
  • ... and 12 more: https://git.openjdk.org/jdk/compare/2b4830a3959496372719270614a58737cf4deb2f...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Oct 16 '22 10:10 openjdk[bot]

@RealFYang @yadongw Pushed as commit d3781ac8a38943d8a20304e770b01d5418ee33d0.

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

openjdk[bot] avatar Oct 16 '22 10:10 openjdk[bot]