RFR 8220570: Additonal trace when native thread creation fails
ralf.schmelter at sap.com
Wed Mar 13 12:17:26 UTC 2019
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.
More information about the hotspot-runtime-dev