RFR: Samples/jmh sample 39 memory access
Michael Mirwaldt
duke at openjdk.org
Thu Oct 13 18:25:46 UTC 2022
On Wed, 12 Oct 2022 23:34:59 GMT, Michael Mirwaldt <duke at openjdk.org> wrote:
> I propose this sample because overlooking the memory layout of e.g. ArrayLists can be a pitfall for benchmarks.
> This new sample makes users of JMH aware of this problem. It teaches them how to use JMH right.
> What do you think?
I have left out comments about
- using e.g. Eclipse collections for the support of primitive types like int
- project Valhalla which will give the support for primitive types like int to the Java collection framework
-------------
PR: https://git.openjdk.org/jmh/pull/85
More information about the jmh-dev
mailing list