On Tue, 2 Jun 2026 23:30:35 GMT, Shiv Shah <[email protected]> wrote: > 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).
I filed this enhancement request out of frustration, but I'm not sure that accepting any frame from java/jdk/sun.* is the right way to deal with this as it could hide completely unexpected situations. That said, I am struggling to see exactly what the stack inspections are for ... ------------- PR Comment: https://git.openjdk.org/jdk/pull/31357#issuecomment-4619129469
