Skip to content

Commit eede375

Browse files
committed
Bug 578789 - Deadlock situation when adding new JRE
Don't use syncExec() for tasks that can be done asynchronously. The listener can be called from the thread that holds already a lock. Change-Id: Ic2029ae0e395a31564c97e6233ce6596086dd7f6 Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/190854 Tested-by: JDT Bot <[email protected]> Reviewed-by: Andrey Loskutov <[email protected]>
1 parent 5155869 commit eede375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void doRefresh() {
153153
fVMList.refresh();
154154
}
155155
else {
156-
display.syncExec(new Runnable() {
156+
display.asyncExec(new Runnable() {
157157
@Override
158158
public void run() {
159159
fVMList.refresh();

0 commit comments

Comments
 (0)