8379695: [lworld] Update GCBasher to use value classes#2215
8379695: [lworld] Update GCBasher to use value classes#2215lmesnik wants to merge 3 commits intoopenjdk:lworldfrom
Conversation
|
👋 Welcome back lmesnik! A progress list of the required criteria for merging this PR into |
|
@lmesnik 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: 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 118 new commits pushed to the
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 |
Webrevs
|
Arraying
left a comment
There was a problem hiding this comment.
Thank you for working on this!
Please, note that after this fix GCbasher is going to enable preview always.
Do we want to keep original test while value classes are still preview feature?
I think that it is not needed, however if someone thinks it is good idea, I can add gcbasher-nopreview and keep until we start removing @enablePreview from our tests.
My opinion is that we would lose quite a bit of test coverage w/o preview if we get rid of GCBasher. I think I'd like to see both, at least over a transitionary period.
keep old version of gcbahser
I think this would be the pragmatic choice. However, we should probably introduce a comment in both source files indicating that they are mirrored.
|
Arraying
left a comment
There was a problem hiding this comment.
Looks fine. My understanding is that javac will automatically run the required plugin when --enable-preview is provided so nothing changes on the test side of things.
| import java.util.HashSet; | ||
| import java.util.Set; | ||
|
|
||
| @jdk.test.lib.valueclass.AsValueClass |
There was a problem hiding this comment.
While it is good to have as many value classes as possible, I am not sure what we gain here. But I guess it could be worth testing nonetheless.
|
/integrate |
|
Going to push as commit 92c5e58.
Your commit was automatically rebased without conflicts. |
The GCbasher si a GC stress test that create a lot of different objects and arrays.
It would be makes sense to update it to create a lot of different value classes and arrays of value types. It helps to ensure that GC works with different type of classes.
Please, note that after this fix GCbasher is going to enable preview always.
Do we want to keep original test while value classes are still preview feature?
I think that it is not needed, however if someone thinks it is good idea, I can add gcbasher-nopreview and keep until we start removing
@enablePreviewfrom our tests.In the long term the problem might be that some structure are flattened, and test start generating less objects. However they are much more diverse now.
UPDATE. There are 3 possible approaches to maintain value/non-value classes
@compilecommands to choose different files@ValueClassannotation and support javac plugin that change value class attribute during compilation. In this case we need to add 'PREVEW_MODE' when tests are compiles with --enable-preview and this pluign.The 2) and 3) might work well to maintain value/non-value variants of tests. While it looks overcompilcated for gcbasher. So I prefer to either have 'gcbasher-novalue' or use only variant with
--enable-preview.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2215/head:pull/2215$ git checkout pull/2215Update a local copy of the PR:
$ git checkout pull/2215$ git pull https://git.openjdk.org/valhalla.git pull/2215/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2215View PR using the GUI difftool:
$ git pr show -t 2215Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2215.diff
Using Webrev
Link to Webrev Comment