Skip to content
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

8342295: compiler/jvmci/TestJVMCISavedProperties.java fails due to garbage in output #21583

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tzezula
Copy link
Contributor

@tzezula tzezula commented Oct 18, 2024

The compiler/jvmci/TestJVMCISavedProperties test fails due to overlapping output from the saved system properties. The initialization of savedProperties in jdk.vm.ci.services.Services is correctly synchronized, the issue suggests that two separate libjvmci compiler isolates are each printing their own set of saved properties.

In a successful test run, the CompileBroker thread aborts the VM before it completes initialization, displaying the error message Cannot use JVMCI compiler: Value of jvmci.Compiler is “null” (due to the -Djvmci.Compiler=null setting), and the message DONE IN MAIN is never printed. However, in the failed test output, the DONE IN MAIN message appears, indicating that the VM initialization completed and created the JVMCIRuntime instance. The CompileBroker thread might have concurrently initialized JVMCIRuntime in another isolate. Since each JVMCIRuntime initialization outputs system properties, this is likely the cause of the overlapping output.

The proposed solution is to use the -XX:+EnableJVMCI flag instead of -XX:+UseJVMCICompiler, to avoid this issue.


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-8342295: compiler/jvmci/TestJVMCISavedProperties.java fails due to garbage in output (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21583

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 18, 2024

👋 Welcome back tzezula! 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 Oct 18, 2024

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

8342295: compiler/jvmci/TestJVMCISavedProperties.java fails due to garbage in output

Reviewed-by: dnsimon

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

  • 309b929: 8336401: Remove the option onjcmd from the jdwp agent
  • 401d0d6: 8335662: [AArch64] C1: guarantee(val < (1ULL << nbits)) failed: Field too big for insn
  • 8591109: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning
  • 0784011: 8340488: Clarify LocaleServiceProvider deployment on application module path
  • 4dcc7f3: 8337536: AArch64: Enable BTI branch protection for runtime part

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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) 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 rfr Pull request is ready for review label Oct 18, 2024
@openjdk
Copy link

openjdk bot commented Oct 18, 2024

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

  • hotspot-compiler

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-compiler hotspot-compiler-dev@openjdk.org label Oct 18, 2024
@mlbridge
Copy link

mlbridge bot commented Oct 18, 2024

Webrevs

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.

Looks good to me - thanks for fixing it.

@openjdk
Copy link

openjdk bot commented Oct 18, 2024

@tzezula Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

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.

Still looks fine.

@openjdk
Copy link

openjdk bot commented Oct 18, 2024

⚠️ @tzezula the full name on your profile does not match the author name in this pull requests' HEAD commit. If this pull request gets integrated then the author name from this pull requests' HEAD commit will be used for the resulting commit. If you wish to push a new commit with a different author name, then please run the following commands in a local repository of your personal fork:

$ git checkout JDK-8342295
$ git commit --author='Preferred Full Name <you@example.com>' --allow-empty -m 'Update full name'
$ git push

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 18, 2024
@tzezula
Copy link
Contributor Author

tzezula commented Oct 19, 2024

/integrate

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

openjdk bot commented Oct 19, 2024

@tzezula
Your change (at version 7849ba6) is now ready to be sponsored by a Committer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-compiler hotspot-compiler-dev@openjdk.org ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored
Development

Successfully merging this pull request may close these issues.

2 participants