RFR: 7903912: JMH: Pad using a mix of bytes and longs [v2]

Aleksey Shipilev shade at openjdk.org
Tue Jan 7 14:11:51 UTC 2025


On Tue, 17 Dec 2024 23:41:08 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> Using a mix of bytes and longs we should get the gap-filling effect described in https://shipilev.net/jvm/objects-inside-out/#_observation_hierarchy_tower_padding_trick_collapse_in_jdk_15 while reducing size of generated code by roughly 20%:
>> 
>> 
>> 864772  jmh-samples/target/jmh-samples-1.38-SNAPSHOT.jar
>> 490531  jmh-samples/target/jmh-samples-1.38-SNAPSHOT-sources.jar
>> 
>> 684383 jmh-samples/target/jmh-samples-1.38-SNAPSHOT.jar
>> 399758 jmh-samples/target/jmh-samples-1.38-SNAPSHOT-sources.jar
>
> Claes Redestad has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
> 
>  - Merge branch 'master' into byte_long_padding
>  - Adjust hierarchical padding in static code
>  - Superficial comment change to trigger pre-integration tests
>  - Pad with a mix of bytes and longs

Marked as reviewed by shade (Committer).

-------------

PR Review: https://git.openjdk.org/jmh/pull/147#pullrequestreview-2534435215


More information about the jmh-dev mailing list