Providing users with thread type

Jean Christophe Beyler jcbeyler at google.com
Thu Apr 18 14:18:22 UTC 2019


Hi all,

When doing profiling, often users have a hard time determining what is
happening inside libjvm.so. When doing profiling, the JVM seems like a
black box and it is hard to differentiate between a thread doing
GC/Compile/Actual VM work since all they get is profiles from libjvm.so but
not what are the various profiles doing.

We have a small patch that provides a method to users to ask what is the
type of the current thread, which then provides one of those types
(GC/Compile/Actual VM work).

I'd like to ask if this seems like a reasonable thing to do and should I
work on providing this via a JVMTI call. Something like
GetCurrentThreadType.

What do you all think? Is this sane and possible to try to push forward?

Thanks for your opinions,
Jc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20190418/fff7e974/attachment.html>


More information about the serviceability-dev mailing list