[jdk22u] RFR: 8325616: JFR ZGC Allocation Stall events should record stack traces

Neethu Prasad nprasad at openjdk.org
Thu Jun 27 17:25:54 UTC 2024


Backport JDK-8325616 to record stack traces during  jdk.ZAllocationStall event.

**Verification**

1. Ran jdk_jfr and hotspot_gc tests with ZGC. All tests passed.
2. Output of print jfr on a sample java program that resulted in allocation stall.


jdk.ZAllocationStall {
  startTime = 10:53:37.434
  duration = 615 ms
  type = "Small"
  size = 2.0 MB
  eventThread = "Thread-107" (javaThreadId = 145)
  stackTrace = [
    StressZGC.work(int, Set) line: 30
    StressZGC.work(int, Set) line: 26
    StressZGC.work(int, Set) line: 26
    StressZGC.work(int, Set) line: 26
    StressZGC.work(int, Set) line: 26
    ...
  ]
}

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

Commit messages:
 - Backport 71ff2d717798f1f314b97d97dfbc2b859fb47ae3

Changes: https://git.openjdk.org/jdk22u/pull/238/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk22u&pr=238&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/jdk22u/pull/238.diff
  Fetch: git fetch https://git.openjdk.org/jdk22u.git pull/238/head:pull/238

PR: https://git.openjdk.org/jdk22u/pull/238


More information about the jdk-updates-dev mailing list