Integrated: 7195: GC confguration with GC Flags

Brice Dutheil github.com+803621+bric3 at openjdk.java.net
Tue May 18 12:01:42 UTC 2021


On Thu, 18 Mar 2021 16:30:12 GMT, Brice Dutheil <github.com+803621+bric3 at openjdk.org> wrote:

> This pull request proposes to display related garbage collector flags.
> 
> **Motivation**
> 
> When turning the GC flag knobs, it is useful to be able to quickly see
> the GC configuration, however the _GC configuration_ page only show 3 
> events, if one wants to have a look at flags he has to either check
> the command line or inspect the _JVM internal_ page to find relevant
> GC flags. Therefore having these flags right there is useful to get
> a quick picture of the current configuration.
> 
> **Current limitations**
> 
> 1. At this time the selected flags depends on the GC algorithm which is 
>    derived from the name of the old collector name. This is simple, 
>    however it prevents to identify EpsilonGC because whose old 
>    collector name is `SerialOld`, which is the same as SerialGC.
> 
> 2. There are some global flags in `gc/shared/gc_globals.hpp` that 
>    I didn't include as I didn't use most of them. I'm not sure these 
>    flags are seen much in the wild.
> 
> 
> **Remarks**
> 
> As mentionned above the use of the OldCollector name may not be the 
> best choice, I would like to refactor this part to use the `Use*GC`
> flags instead. I am a bit unsure at this time how to use the 
> existing API.

This pull request has now been integrated.

Changeset: 39643ce2
Author:    Brice Dutheil <brice.dutheil at gmail.com>
Committer: Marcus Hirt <hirt at openjdk.org>
URL:       https://git.openjdk.java.net/jmc/commit/39643ce237db1dd313b34d1c6dcd0cda91893038
Stats:     309 lines in 4 files changed: 256 ins; 1 del; 52 mod

7195: GC confguration with GC Flags

Reviewed-by: hirt

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

PR: https://git.openjdk.java.net/jmc/pull/230


More information about the jmc-dev mailing list