Integrated: 7903912: JMH: Pad using a mix of bytes and longs

Claes Redestad redestad at openjdk.org
Tue Jan 7 15:52:58 UTC 2025


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

This pull request has now been integrated.

Changeset: 4cd4c159
Author:    Claes Redestad <redestad at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jmh/commit/4cd4c159b70c126dd69a1ff63465641f28095afa
Stats:     217 lines in 7 files changed: 16 ins; 156 del; 45 mod

7903912: JMH: Pad using a mix of bytes and longs

Reviewed-by: shade

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

PR: https://git.openjdk.org/jmh/pull/147


More information about the jmh-dev mailing list