Skip to content

Conversation

@toddjonker
Copy link
Contributor

@toddjonker toddjonker commented Sep 25, 2024

This disambiguates the situation where libgraal is "enabled" for use by non-CompilerBroker compilations, without being used as the JIT compiler.

Per discussion at #21120 (comment)

Grep shows that the property and related method are not used in this codebase. Tier1 tests on linux-x86_64-server-release pass cleanly.


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-8340974: Ambiguous name of jtreg property vm.libgraal.enabled (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21190

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

Using diff file

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

Webrev

Link to Webrev Comment

This disambiguates the situation where libgraal is "enabled" for use by
non-CompilerBroker compilations, without being used as the JIT compiler.
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 25, 2024

👋 Welcome back toddjonker! 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
Copy link

openjdk bot commented Sep 25, 2024

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

8340974: Ambiguous name of jtreg property vm.libgraal.enabled

Reviewed-by: dnsimon, phh

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

  • 5d062e2: 8340576: Some JVMCI flags are inconsistent
  • 1447967: 8339261: Logs truncated in test javax/net/ssl/DTLS/DTLSRehandshakeTest.java
  • a02d895: 8333403: Write a test to check various components events are triggered properly
  • bb040ef: 8340983: Use index and definition tags in Object and Double
  • 8225a5f: 8340981: Update citations to "Hacker's Delight"
  • aceae76: 8339460: CDS error when module is located in a directory with space in the name
  • aeaa4f7: 8336895: BufferedReader doesn't read full \r\n line ending when it doesn't fit in buffer
  • 376056c: 8336468: Reflection and MethodHandles should use more precise initializer checks
  • e36ce5f: 8336942: Improve test coverage for class loading elements with annotations of different retentions
  • 95d3e9d: 8339560: Unaddressed comments during code review of JDK-8337664
  • ... and 29 more: https://git.openjdk.org/jdk/compare/0b8c9f6d2397dcb480dc5ae109607d86f2b15619...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 (@dougxc, @phohensee) 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
Copy link

openjdk bot commented Sep 25, 2024

@toddjonker 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 Sep 25, 2024
@toddjonker
Copy link
Contributor Author

/label graal

@openjdk openjdk bot added the graal graal-dev@openjdk.org label Sep 25, 2024
@openjdk
Copy link

openjdk bot commented Sep 25, 2024

@toddjonker
The graal label was successfully added.

@toddjonker toddjonker changed the title Rename jtreg property vm.libgraal.enabled to vm.libgraal.jit. 8340974: Rename jtreg property vm.libgraal.enabled to vm.libgraal.jit. Sep 25, 2024
@toddjonker toddjonker changed the title 8340974: Rename jtreg property vm.libgraal.enabled to vm.libgraal.jit. 8340974: Ambiguous name of jtreg property vm.libgraal.enabled Sep 25, 2024
@toddjonker toddjonker marked this pull request as ready for review September 25, 2024 21:35
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 25, 2024
@mlbridge
Copy link

mlbridge bot commented Sep 25, 2024

Webrevs

* @return true if libgraal is used as JIT compiler.
*/
protected String isLibgraalEnabled() {
protected String isLibgraalJit() {
Copy link
Member

Choose a reason for hiding this comment

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

I slightly prefer isLibgraalJIT as this acronym is (most) capitalized in the code base.

You should also rename isLibgraalEnabled to isLibgraalJIT in test/lib/jdk/test/whitebox/code/Compiler.java for consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed both. I was being conservative by limiting scope of change to the relevant interface, and felt that the existing name was reasonable in the Compiler scope.

Copy link
Member

@dougxc dougxc left a comment

Choose a reason for hiding this comment

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

LGTM.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 26, 2024
@toddjonker
Copy link
Contributor Author

/integrate auto

@openjdk openjdk bot added the auto Expect automatic integration when ready; no further action required label Sep 26, 2024
@openjdk
Copy link

openjdk bot commented Sep 26, 2024

@toddjonker This pull request will be automatically integrated when it is ready

@openjdk
Copy link

openjdk bot commented Sep 26, 2024

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Sep 26, 2024
@openjdk
Copy link

openjdk bot commented Sep 26, 2024

@openjdk[bot]
Your change (at version 59a8ed3) is now ready to be sponsored by a Committer.

@benty-amzn
Copy link

/sponsor

@openjdk
Copy link

openjdk bot commented Sep 26, 2024

@benty-amzn Only Committers are allowed to sponsor changes.

@phohensee
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Sep 26, 2024

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

  • 5d062e2: 8340576: Some JVMCI flags are inconsistent
  • 1447967: 8339261: Logs truncated in test javax/net/ssl/DTLS/DTLSRehandshakeTest.java
  • a02d895: 8333403: Write a test to check various components events are triggered properly
  • bb040ef: 8340983: Use index and definition tags in Object and Double
  • 8225a5f: 8340981: Update citations to "Hacker's Delight"
  • aceae76: 8339460: CDS error when module is located in a directory with space in the name
  • aeaa4f7: 8336895: BufferedReader doesn't read full \r\n line ending when it doesn't fit in buffer
  • 376056c: 8336468: Reflection and MethodHandles should use more precise initializer checks
  • e36ce5f: 8336942: Improve test coverage for class loading elements with annotations of different retentions
  • 95d3e9d: 8339560: Unaddressed comments during code review of JDK-8337664
  • ... and 29 more: https://git.openjdk.org/jdk/compare/0b8c9f6d2397dcb480dc5ae109607d86f2b15619...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Sep 26, 2024
@openjdk openjdk bot closed this Sep 26, 2024
@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 Sep 26, 2024
@openjdk
Copy link

openjdk bot commented Sep 26, 2024

@phohensee @toddjonker Pushed as commit 2349bb7.

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

@toddjonker toddjonker deleted the vm-libgraal-jit branch September 26, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto Expect automatic integration when ready; no further action required graal graal-dev@openjdk.org hotspot hotspot-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants