RFR: 8276618: Pad cacheline for Thread::_rcu_counter

Hamlin Li mli at openjdk.java.net
Mon Nov 8 12:41:34 UTC 2021


On Mon, 8 Nov 2021 09:48:24 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> The other concern that has been brought up internally has been that this increases the size of Thread by ~40% from 624 to 872 bytes; do you think there a way to save some memory by reorganizing the fields so that the counter is on a separate cache line "naturally"?

Sure, if current change is proven to bring some performance benefit, let me do some more research in this direction.

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

PR: https://git.openjdk.java.net/jdk/pull/6246



More information about the hotspot-gc-dev mailing list