Integrated: 8307378: Allow collectors to provide specific values for GC notifications' actions

William Kemper wkemper at openjdk.org
Fri May 5 05:46:23 UTC 2023


On Wed, 3 May 2023 18:17:20 GMT, William Kemper <wkemper at openjdk.org> wrote:

> At the end of a GC pause, a `GarbageCollectionNotificationInfo` may be emitted. The notification has a `gcAction` field which presently originates from the field `_gc_end_message` in `GCMemoryManager`. Concurrent collectors such as Shenandoah, ZGC and G1 may have more (brief) pauses in their cycle than they have memory managers. This makes it difficult for gc notification listeners to determine the phase of the cycle that emitted the notification. We are proposing a change to allow collectors to define specific values for the `gcAction` to make it easier for notification listeners to classify the gc phase responsible for the notification.

This pull request has now been integrated.

Changeset: 1b143ba7
Author:    William Kemper <wkemper at openjdk.org>
Committer: Stefan Karlsson <stefank at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1b143ba78712e7ac98ca9873c50989b3fba07394
Stats:     88 lines in 19 files changed: 31 ins; 4 del; 53 mod

8307378: Allow collectors to provide specific values for GC notifications' actions

Reviewed-by: kdnilsen, stefank

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

PR: https://git.openjdk.org/jdk/pull/13785


More information about the hotspot-dev mailing list