Skip to content

Conversation

@matthiasblaesing
Copy link
Contributor

Remove the synchronization in SQLEditorSupport#closeLogger. The critical
part (ensuring logger is not closed while it could be acquired) is
protected by the finer grained loggerLock and thus the monitor on
SQLEditorSupport is not needed.

The deadlock sequence showed:

  • the EDT held the monitor of SQLEditorSupport
  • a task was dispatched into a request processor
  • the EDT waited for the task to finish
  • the task tried to enter the monitor of SQLEditorSupport

Remove the synchronization in SQLEditorSupport#closeLogger. The critical
part (ensuring logger is not closed while it could be acquired) is
protected by the finer grained loggerLock and thus the monitor on
SQLEditorSupport is not needed.

The deadlock sequence showed:

- the EDT held the monitor of SQLEditorSupport
- a task was dispatched into a request processor
- the EDT waited for the task to finish
- the task tried to enter the monitor of SQLEditorSupport
@lkishalmi lkishalmi added this to the 12.1 milestone Jul 14, 2020
Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be fine.

@lkishalmi lkishalmi merged commit 6eb672d into apache:master Jul 14, 2020
@matthiasblaesing matthiasblaesing deleted the netbeans-4308 branch October 4, 2021 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants