8380015: [lworld] runtime/valhalla/inlinetypes/field_layout/ValueRandomLayoutTest.java divides by zero during statistic printing#2223
Conversation
|
👋 Welcome back phubner! A progress list of the required criteria for merging this PR into |
|
@Arraying 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 137 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 |
| String seedProperty = "CLASS_GENERATION_SEED"; | ||
| String seedString = System.getProperty(seedProperty); |
There was a problem hiding this comment.
We have jdk.test.lib.Utils which have a generalised concept for this.
Utils.getRandomInstance();
valhalla/test/lib/jdk/test/lib/Utils.java
Lines 513 to 526 in 5de772a
There was a problem hiding this comment.
That would look nicer. Would you be okay with it being a follow-up RFE?
There was a problem hiding this comment.
Sure, was more a drive-by comment. I have not looked at the ValueClassGenerator at all.
|
Thanks for the reviews! |
|
Going to push as commit 2d66adb.
Your commit was automatically rebased without conflicts. |
Hi all,
In some rare cases, no abstract value classes are generated. This causes the statistics printer to divide by zero.
This change makes it such that at least one abstract class is generated (this is to ensure sufficient coverage) rather than band-aid fixing the symptom. When halfway through generation, the generator will nudge the next class to be abstract if no abstract value classes have been generated thus far.
I also added a quality of life seed print at the beginning of execution.
Testing: tier 1, 100 invocations of the generator on Linux x64. The originally failing seed passes.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2223/head:pull/2223$ git checkout pull/2223Update a local copy of the PR:
$ git checkout pull/2223$ git pull https://git.openjdk.org/valhalla.git pull/2223/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2223View PR using the GUI difftool:
$ git pr show -t 2223Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2223.diff
Using Webrev
Link to Webrev Comment