RFR 8220570: Additonal trace when native thread creation fails

Schmelter, Ralf ralf.schmelter at sap.com
Wed Mar 13 12:17:26 UTC 2019


Hi,

I've added additional trace in case an OS thread could not be created. Depending on the OS, not being able to create a thread could have many reasons. On Windows for example it should only be the result of not having enough memory, but on Linux it could be hitting other limits in addition. In order to keep the additional code needed small, I've would reuse methods already used in printing the limits to a hs_err* file, so it includes some which have no relevance for the failure (see the example in the bug report). But given the low occurrence of this errors, I think it should be OK.

webrev: http://cr.openjdk.java.net/~rschmelter/webrevs/8220570/webrev.0/
bugreport: https://bugs.openjdk.java.net/browse/JDK-8220570

Best regards,
Ralf Schmelter


More information about the hotspot-runtime-dev mailing list