RFR: 8323716: Only print ZGC Phase Switch events in hs_err files when running with ZGC

Axel Boldt-Christmas aboldtch at openjdk.org
Mon Jan 15 10:26:23 UTC 2024


On Mon, 15 Jan 2024 10:16:12 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> Don't print the ZGC Phase Switch hs_err section when the JVM is run with other GCs than ZGC.
> 
> I've tested this manually with `-XX:ErrorHandlerTest=3 -version` and verified that the section is logged when ZGC is used, and that it is not logged when G1 is used.

lgtm.

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

Marked as reviewed by aboldtch (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/17420#pullrequestreview-1821392329


More information about the hotspot-dev mailing list