RFR(s): 8149036: Add UL tracing for thread related events at os level

Marcus Larsson marcus.larsson at oracle.com
Tue Feb 23 17:52:30 UTC 2016


Hi,

On 2016-02-22 17:54, Thomas Stüfe wrote:
> Dear all,
>
> please take a look at this proposed addition to UL. This adds a number of
> trace points to thread creation. In detail:
>
> - it traces thread creation and thread creation errors, including pthread
> attributes (for Posix platforms)
> - it traces stack location and creation/removal of stack guard pages.
>
> This all was first AIX-only tracing, but I converted this to UL and made it
> available on all platforms.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8149036
> Webrev:
> http://cr.openjdk.java.net/~stuefe/webrevs/8149036-add-tracing-for-thread-events/webrev.00/webrev/

It might be a good idea to add a 'thread' tag and use that in addition 
to the os tag for these messages. It would allow easy filtering of these 
messages for those interested/uninterested. Just 'os' alone is quite a 
wide area.

Thanks,
Marcus

> Note also that I added a helper function, os::errno_name(), which is a very
> simple replacement for strerror() without its problems (thread safety,
> unwanted localizations...).
>
> What do you think?
>
> Kind Regards, Thomas



More information about the hotspot-runtime-dev mailing list