RFR: 8300148: Consider using a StoreStore barrier instead of Release barrier on ctor exit [v3]

Joshua Cao duke at openjdk.org
Wed Apr 3 01:13:39 UTC 2024


On Wed, 27 Mar 2024 17:46:14 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> Can we also add statistic about how many different barriers C2 generates and eliminates? It will help to know if we missing some optimization with these changes.

Added these statistics. Example output: `Barriers generated = 4, Barriers eliminated = 1`

I think there are missing cases for barriers eliminated. There could be cases of aside from `MemBarNode::remove()`

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

PR Comment: https://git.openjdk.org/jdk/pull/18505#issuecomment-2033363198


More information about the hotspot-compiler-dev mailing list