[slf4j-dev] [JIRA] Updates for SLF4J-515: write(StringBuilder buf, Throwable t) should be synchronized in slf4j-simple

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Jul 9 00:38:00 CEST 2021


SLF4J / SLF4J-515 [In Progress]
write(StringBuilder buf, Throwable t) should be synchronized in slf4j-simple

==============================

Here's what changed in this issue in the last few minutes.

There are 2 comments.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-515

==============================
 2 comments
------------------------------

Tibor Digaňa on 09/Jul/21 12:25 AM
Deadlock never happens with one lock, that's impossible. The deadlock with two contra locks Mutexx happens only with the following pattern and you do not have it in your code:
{code:java}
M1:
synchronized(lockX) {
 synchronized(lockY) {
 }
}{code}
{code:java}
M2:
synchronized(lockY) {
  synchronized(lockX) {
  }
}{code}

------------------------------

Ceki Gülcü on 09/Jul/21 12:31 AM
[~tibor17] As you mention, deadlocks are quite unlikely unless someone invokes a logging method from within a PrintStream. Unlikely but someone might be using their own implementation of PrintStream...


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the slf4j-dev mailing list