> SleepingThread in ThreadController had a hardcoded list of JDK method names 
> for stack trace checking every Thread.sleep change (JFR events, virtual 
> threads, etc) required updating this list. Replaced with a generic JDK frame 
> filter (java.*/jdk.*/sun.*) that works at any stack position, matching the 
> approach already used in strace001.java and SleepingThread.java. Also added 
> overridable checkElement/stackTraceLength methods to BaseThread so only 
> SleepingThread behavior changes.
> 
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Shiv Shah has updated the pull request with a new target base due to a merge or 
a rebase. The incremental webrev excludes the unrelated changes brought in by 
the merge/rebase. The pull request contains three additional commits since the 
last revision:

 - Require the Thread.sleep entry frame instead of accepting any JDK frame
 - Merge branch 'master' into JDK-8340088-v2
 - 8340088: Stack tracing tests of sleeping thread should be more resilient to 
code changes

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/31357/files
  - new: https://git.openjdk.org/jdk/pull/31357/files/564652aa..b58c2faa

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=31357&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31357&range=00-01

  Stats: 357623 lines in 3631 files changed: 314145 ins; 19633 del; 23845 mod
  Patch: https://git.openjdk.org/jdk/pull/31357.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31357/head:pull/31357

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

Reply via email to