mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix race condition resulting in an endless loop that eats 100% CPU in some of our test builds
This commit is contained in:
@@ -145,7 +145,9 @@ public class QueueProcessor<T> {
|
||||
}
|
||||
|
||||
public void add(T t, ModalityState state) {
|
||||
myModalityState.put(new MyOverrideEquals(t), state);
|
||||
synchronized (myQueue) {
|
||||
myModalityState.put(new MyOverrideEquals(t), state);
|
||||
}
|
||||
doAdd(t, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user