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

8304168: [lworld] CDS tests fail with --enable-preview patched value classes #832

Closed
wants to merge 2 commits into from

Conversation

RogerRiggs
Copy link
Collaborator

@RogerRiggs RogerRiggs commented Mar 14, 2023

When --enable-preview is true, the patching of some java.base classes as value classes disables CDS.
Subsequently the CDS tests fail.

For a CDS, disable Valhalla when --enable-preview is set so java.base is not patched with value classes.


Progress

  • Change must not contain extraneous whitespace

Integration blocker

 ⚠️ Whitespace errors (failed with the updated jcheck configuration)

Issue

  • JDK-8304168: [lworld] CDS tests fail with --enable-preview patched value classes (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 832

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/832.diff

Webrev

Link to Webrev Comment

Sorry, something went wrong.

--enable-preview adds --patch-module to patch value classes into java.base.
The patching is incompatible with CDS in some cases.
@bridgekeeper
Copy link

bridgekeeper bot commented Mar 14, 2023

👋 Welcome back rriggs! A progress list of the required criteria for merging this PR into lworld 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 label Mar 14, 2023
@mlbridge
Copy link

mlbridge bot commented Mar 14, 2023

Webrevs

@mlchung
Copy link
Member

mlchung commented Mar 14, 2023

Is this just a temporary fix? We would need debugging to work with --enable-preview. For CDS, is it possible to have an alternative shared archive with the value classes and special case for --enable-preview?

@RogerRiggs RogerRiggs changed the title 8304168: Modify CDS tests to disable -XX:-EnableValhalla with --enable-preview 8304168 Mar 14, 2023
@openjdk openjdk bot changed the title 8304168 8304168: [lword] CDS tests fail with --enable-preview patched value classes Mar 14, 2023
@openjdk
Copy link

openjdk bot commented Mar 14, 2023

@RogerRiggs This change is no longer ready for integration - check the PR body for details.

@openjdk openjdk bot added the ready label Mar 14, 2023
@RogerRiggs
Copy link
Collaborator Author

Is this just a temporary fix? We would need debugging to work with --enable-preview. For CDS, is it possible to have an alternative shared archive with the value classes and special case for --enable-preview?

Temporary in the sense that until value classes are fully integrated, some mechanism is needed to include them when --enable-preview or not. And that optionality will need to work with CDS in some yet to be determined fashion.

@RogerRiggs
Copy link
Collaborator Author

The test failures in jdi are not due to --enable-preview, for now only address the cds test failure.

@RogerRiggs RogerRiggs changed the title 8304168: [lword] CDS tests fail with --enable-preview patched value classes 8304168 Mar 15, 2023
@openjdk openjdk bot changed the title 8304168 8304168: [lworld] CDS tests fail with --enable-preview patched value classes Mar 15, 2023
@mlchung
Copy link
Member

mlchung commented Mar 15, 2023

I think it may be better to problem list this test and create a JBS issue to follow up how CDS works with --enable-preview (that currently translates into --patch-module options).

Copy link
Member

@TobiHartmann TobiHartmann left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me.

@TobiHartmann
Copy link
Member

Problem listing sounds good as well. This just causes lots of noise in testing in the CI so it would be nice to get a fix in soon.

@openjdk
Copy link

openjdk bot commented Jun 15, 2023

@RogerRiggs this pull request can not be integrated into lworld due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout 8304168-cds-test-fails
git fetch https://git.openjdk.org/valhalla.git lworld
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge lworld"
git push

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 4, 2023

@RogerRiggs This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 1, 2024

@RogerRiggs This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants