RFR: 7903912: JMH: Pad using a mix of bytes and longs
Aleksey Shipilev
shade at openjdk.org
Tue Dec 17 18:34:00 UTC 2024
On Sun, 15 Dec 2024 18:51:54 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
So, good news. I was able to stabilize current JMH tests. If you pull from master, it would probably turn green.
-------------
PR Comment: https://git.openjdk.org/jmh/pull/147#issuecomment-2549288015
More information about the jmh-dev
mailing list