Skip to content

Commit

Permalink
[eclipse-cdt#327] fix blocking jobs (eclipse-cdt#328)
Browse files Browse the repository at this point in the history
...by removing synchronized from refreshTreeContentFromLS. The method
will be called from different jobs started by the
DeferredTreeContentManager. The completable future returned by
symbols.thenAcceptAsync cannot join, when the refreshTreeContentFromLS
is synchronized.

fixes eclipse-cdt#327
  • Loading branch information
ghentschke authored May 28, 2024
1 parent cb005e8 commit bed4f47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private Object[] getCompileUnitElements(Object object) {
return EMPTY;
}

private synchronized void refreshTreeContentFromLS(CompileUnit compileUnit) {
private void refreshTreeContentFromLS(CompileUnit compileUnit) {
if (compileUnit == null || !compileUnit.isDirty) {
return;
}
Expand Down

0 comments on commit bed4f47

Please sign in to comment.