-
In the recordSample function, printing the log directly will obviously cause a JVM deadlock. Would you like to inquire about this detailed principle and solution? |
Beta Was this translation helpful? Give feedback.
Answered by
apangin
Sep 25, 2023
Replies: 1 comment 1 reply
-
I'm not sure I understand the question. Are you talking about an existing async-profiler issue or you are trying to develop new functionality? Since logging relies on |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
apangin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure I understand the question. Are you talking about an existing async-profiler issue or you are trying to develop new functionality?
Since logging relies on
*printf
functions, it's unsafe to use it inside a signal handler.See signal-safety(7) for the list of functions safe to call inside a signal handler.