JVM_DumpAllStacks in jvm.h

Alan Bateman Alan.Bateman at oracle.com
Mon Mar 12 09:48:55 UTC 2018

On 12/03/2018 09:30, Langer, Christoph wrote:
> Hi,
> I have a question to the experts:
> While looking around in the hotspot source code to understand the ways of printing thread dumps and its implementation, I stumbled over JVM_DumpAllStacks from jvm.h. Grepping the OpenJDK repo shows me that this function apparently is not used at all. Would it be a candidate for removal? If so, shall I file a bug and post a patch for its removal?
> Alternatively, maybe I can build on this function. I'm looking for a way to trigger thread dumps out of Java code in java.base. Is there any elegant way to do this? Maybe you have some suggestions...?
This was used to support the console for applets in the browser. 
Removing it will probably break Oracle builds at least.


More information about the hotspot-runtime-dev mailing list