RFR: 8259647: Add support for JFR event ObjectCountAfterGC to Shenandoah

Zhengyu Gu zgu at openjdk.java.net
Wed Feb 3 20:10:53 UTC 2021


Please review this patch that adds JFR ObjectCountAfterGC event support.

AFAICT, the event is off by default. If it is enabled, it distorts Shenandoah pause characteristics, since it performs heap walk during final mark pause. 

When event is disabled:
`[191.033s][info][gc,stats] Pause Init Mark (G)                 454 us`
`[191.033s][info][gc,stats] Pause Init Mark (N)                  13 us`

When event is enabled:
`[396.631s][info][gc,stats] Pause Final Mark (G)              43199 us`
`[396.631s][info][gc,stats] Pause Final Mark (N)              42982 us`

Test:
- [x] hotspot_gc_shenandoah

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

Commit messages:
 - JDK-8259647-object_count_jfr

Changes: https://git.openjdk.java.net/jdk/pull/2386/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2386&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8259647
  Stats: 12 lines in 3 files changed: 6 ins; 4 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2386.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2386/head:pull/2386

PR: https://git.openjdk.java.net/jdk/pull/2386



More information about the hotspot-gc-dev mailing list