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

Claes Redestad redestad at openjdk.org
Tue Jan 7 15:00:17 UTC 2025


> 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 incrementally with one additional commit since the last revision:

  Make it 16 bytes and 32 longs

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

Changes:
  - all: https://git.openjdk.org/jmh/pull/147/files
  - new: https://git.openjdk.org/jmh/pull/147/files/c6472b48..ec897a76

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jmh&pr=147&range=02
 - incr: https://webrevs.openjdk.org/?repo=jmh&pr=147&range=01-02

  Stats: 14 lines in 7 files changed: 0 ins; 0 del; 14 mod
  Patch: https://git.openjdk.org/jmh/pull/147.diff
  Fetch: git fetch https://git.openjdk.org/jmh.git pull/147/head:pull/147

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


More information about the jmh-dev mailing list