> This PR adds a new JFR frame type - for native (non-Java) frames.
> Native stack walking can be enabled with a new `FlightRecorderOption`.
> Only `jdk.CPUTimeSample` event can have native frames for now, but this can 
> be extended to other events in the future.
> 
> More details in https://bugs.openjdk.org/browse/JDK-8373791
> 
> Existing JFR tests pass.
> Added a new jtreg test that verifies sanity of collected native frames.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Andrei Pangin has updated the pull request with a new target base due to a 
merge or a rebase. The pull request now contains six commits:

 - Repair broken merge and address PR feedback
 - # Conflicts:
   #    src/hotspot/share/jfr/periodic/sampling/jfrCPUTimeThreadSampler.cpp
   #    src/hotspot/share/jfr/periodic/sampling/jfrCPUTimeThreadSampler.hpp
   #    src/hotspot/share/jfr/periodic/sampling/jfrThreadSampling.cpp
   #    src/hotspot/share/jfr/support/jfrThreadLocal.cpp
 - Merge branch 'master' into jfr-native-frames
   
   # Conflicts:
   #    src/hotspot/share/jfr/periodic/sampling/jfrCPUTimeThreadSampler.cpp
   #    src/hotspot/share/jfr/periodic/sampling/jfrThreadSampling.cpp
 - Added FlightRecorderOption to configure maximum native stack depth
 - Re-implemented native frames support using variable-size requests
 - 8392187: JFR: Use-after-free bug in CPU-time profiler can crash JVM

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

Changes: https://git.openjdk.org/jdk/pull/32524/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32524&range=03
  Stats: 1233 lines in 38 files changed: 1045 ins; 97 del; 91 mod
  Patch: https://git.openjdk.org/jdk/pull/32524.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32524/head:pull/32524

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

Reply via email to