Thread.getState() very slow

Alan Bateman Alan.Bateman at oracle.com
Mon Jul 12 09:02:12 UTC 2010


Martin Buchholz wrote:
> :
> I don't know anything about the implementation of Thread.getState.  Mandy?
>   
Mandy is on vacation at the moment so we might not hear from her for  a 
few days.

Looking through the history, the implementation doesn't seem to have 
changed since 2004. It does appear that the original implementation had 
a small startup impact and that this was addressed by 5026930 leading to 
the current implementation. Clearly it needs to be re-examined now. I 
couldn't find any existing bugs but as it was added for M&M usage, then 
it's possible that it's not widely used and so the performance issue 
just hasn't been noticed.

-Alan.





More information about the core-libs-dev mailing list