[debugger] Fix: threadDump list should not be FreezableArrayList for sorting

GitOrigin-RevId: 1dfa85870b3ce030cd7b8d25aa8b15ae2c796157
This commit is contained in:
Maria Sokolova
2025-02-17 22:04:36 +00:00
committed by intellij-monorepo-bot
parent 53e920e5e7
commit f282f68b1e
@@ -57,7 +57,7 @@ public final class ThreadDumpPanel extends JPanel implements UiDataProvider, NoS
private final ExporterToTextFile myExporterToTextFile;
public ThreadDumpPanel(Project project, ConsoleView consoleView, DefaultActionGroup toolbarActions, List<ThreadState> threadDump) {
this(project, consoleView, toolbarActions, new ArrayList<>(ContainerUtil.map(threadDump, JavaThreadDumpItem::new)), false);
this(project, consoleView, toolbarActions, ContainerUtil.map(threadDump, JavaThreadDumpItem::new), false);
}
@ApiStatus.Internal
@@ -67,7 +67,7 @@ public final class ThreadDumpPanel extends JPanel implements UiDataProvider, NoS
private ThreadDumpPanel(Project project, ConsoleView consoleView, DefaultActionGroup toolbarActions, List<DumpItem> dumpItems, boolean fromDumpItems) {
super(new BorderLayout());
myThreadDump = dumpItems;
myThreadDump = new ArrayList<>(dumpItems);
myMergedThreadDump = CompoundDumpItem.Companion.mergeThreadDumpItems(myThreadDump);
myFilterField = createSearchTextField();