8379614: [lworld] runtime/valhalla/inlinetypes/InlineTypeDensity.java fails with UCOH#2295
8379614: [lworld] runtime/valhalla/inlinetypes/InlineTypeDensity.java fails with UCOH#2295caspernorrbin wants to merge 5 commits intoopenjdk:lworldfrom
Conversation
|
👋 Welcome back cnorrbin! A progress list of the required criteria for merging this PR into |
|
@caspernorrbin 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 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 (@stefank, @fparain) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
stefank
left a comment
There was a problem hiding this comment.
Looks good to me. The test functions could stay non-public, I think.
fparain
left a comment
There was a problem hiding this comment.
LGTM.
Thank you for fixing this test.
Hi everyone,
The test
InlineTypeDensity.javabuilds on incorrect assumptions that a null restricted non-atomic value class is identical to a primitive type, which is not necessarily the case. For example, the first element of an array has to be aligned to 64 bits, while in a primitive type it does not. With COH enabled, this causes the test to fail, as the value class becomes bigger than its primitive equivalent.I have reworked this test to instead check that everything is flattened as expected, and that the alignment of the first element is correctly 64 bits. With these changes, I have also removed
vm.flaglesswhich makes us able to run this test in more configurations.Testing:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2295/head:pull/2295$ git checkout pull/2295Update a local copy of the PR:
$ git checkout pull/2295$ git pull https://git.openjdk.org/valhalla.git pull/2295/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2295View PR using the GUI difftool:
$ git pr show -t 2295Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2295.diff
Using Webrev
Link to Webrev Comment