RFR: 8330577: If the JFR event jdk.G1HeapRegionTypeChange is enabled, it is also written without region type change

Albert Mingkun Yang ayang at openjdk.org
Fri Apr 26 10:40:32 UTC 2024


On Thu, 25 Apr 2024 10:47:39 GMT, Andreas Steiner <asteiner at openjdk.org> wrote:

> Avoid to report jdk.G1HeapRegionTypeChange event if G1 region type is set to free even it is of type free already.

The change is easy to understand. Though I wonder who is the caller that invokes this method on already-freed regions. Is it possible to avoid a call in the caller context so that there is no hidden logic inside this setter?

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

PR Comment: https://git.openjdk.org/jdk/pull/18949#issuecomment-2079132775


More information about the hotspot-gc-dev mailing list