mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add toString to some pool-executed runnables to make it easier to find causes of our thread pool growth
This commit is contained in:
+6
@@ -205,6 +205,12 @@ public class ProgressIndicatorUtils {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return readTask.toString();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
catch (RuntimeException e) {
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ZipperUpdater {
|
||||
queue(runnable, false);
|
||||
}
|
||||
|
||||
public void queue(@NotNull final Runnable runnable, final boolean urgent) {
|
||||
private void queue(@NotNull final Runnable runnable, final boolean urgent) {
|
||||
queue(runnable, urgent, false);
|
||||
}
|
||||
|
||||
@@ -71,6 +71,11 @@ public class ZipperUpdater {
|
||||
myIsEmpty = !myRaised;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return runnable.toString();
|
||||
}
|
||||
};
|
||||
if (Alarm.ThreadToUse.SWING_THREAD.equals(myThreadToUse)) {
|
||||
if (anyModality) {
|
||||
|
||||
Reference in New Issue
Block a user