8205132: Remove Thread.countStackFrames()

Chris Hegarty chris.hegarty at oracle.com
Wed Oct 23 10:02:49 UTC 2019


> On 23 Oct 2019, at 08:25, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> 
> Thread::countStackFrames has been deprecated for 20+ years and has been marked for-removal since Java SE 9. I'd like to remove it for Java SE 14. It's was never a well-defined method and I've been unable to find anything that uses it. The StackWalker API is a much better solution for code that is interested in the number of stack frames.
> 
> The changes to remove this method are here:
>    http://cr.openjdk.java.net/~alanb/8205132/webrev/

Looks good to me.

Given that Java SE 9 released on 21st September 2017, and there has been Java SE 10, 11, 12, and 13, since then. I think it is reasonable to remove this particular method now, in Java SE 14.

> The CSR will need a Reviewer:
>    https://bugs.openjdk.java.net/browse/JDK-8232654

I’ve added myself as reviewer.

-Chris.


More information about the core-libs-dev mailing list