On Wed, 19 Jan 2022 07:15:24 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> This is in the signal handler. Is it safe to print message or do something >> complex? > > I would not print anything here, first because it is in the signal handler > and secondly I don't think it is needed. No real thread dump usages are going > to hit a VM that hasn't initialized yet IMO. > This is in the signal handler. Is it safe to print message or do something > complex? raw write to stdout should be fine I think. >I would not print anything here, first because it is in the signal handler and >secondly I don't think it is needed. No real thread dump usages are going to >hit a VM that hasn't initialized yet IMO. Might be nice for the user to know why his jcmd or kill -3 gets ignored though. ------------- PR: https://git.openjdk.java.net/jdk/pull/7003