[jdk17u-dev] RFR: 8325616: JFR ZGC Allocation Stall events should record stack traces

Kerem Kat duke at openjdk.org
Thu Sep 19 15:17:18 UTC 2024


Backport of JDK-8325616, conflict in a single hunk that wants to add `ZYoungGarbageCollection` and `ZOldGarbageCollection` to `metadata.xml`, which are unrelated and part of GenZGC.

#### Verification

1. Ran jdk_jfr and hotspot_gc tests. All tests passed.

  ```
  make test TEST=hotspot_gc TEST_VM_OPTS=-XX:+UseZGC
  make test TEST=jdk_jdr TEST_VM_OPTS=-XX:+UseZGC
  ```

2. `ZAllocationStall` event has stack trace entry in the jfr for a sample java program:


jdk.ZAllocationStall {
  startTime = 15:07:54.691
  duration = 4.48 ms
  type = "Large"
  size = 12.0 MB
  eventThread = "main" (javaThreadId = 1)
  stackTrace = [
    AllocRate.main(String[]) line: 16
  ]
}

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

Commit messages:
 - Backport 71ff2d717798f1f314b97d97dfbc2b859fb47ae3

Changes: https://git.openjdk.org/jdk17u-dev/pull/2898/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2898&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8325616
  Stats: 3 lines in 3 files changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2898.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2898/head:pull/2898

PR: https://git.openjdk.org/jdk17u-dev/pull/2898


More information about the jdk-updates-dev mailing list