followup to IJPL-235455: do not ever call processQueue() in read action since it can freeze for some inexplicable reason

(cherry picked from commit b8dee67e69e760537c85afa09e03479d265deb0a)

IJ-CR-218809

GitOrigin-RevId: 586833efb60370554d94869daa511587f85dd5a1
This commit is contained in:
Alexey Kudravtsev
2026-08-18 14:55:02 +00:00
committed by intellij-monorepo-bot
parent 3cbb0e8f45
commit a416f0879e
@@ -319,10 +319,6 @@ public final class HighlightInfoUpdaterImpl extends HighlightInfoUpdater impleme
return data;
}
private static void invokeProcessQueueToTriggerEvictedListener(@NotNull Map<? extends PsiElement, ?> map) {
((ReferenceQueueable)map).processQueue(); // to call evictionListener if needed
}
@Override
public synchronized void removeInfosForInjectedFilesOtherThan(@NotNull PsiFile hostPsiFile,
@NotNull TextRange restrictRange,
@@ -615,7 +611,6 @@ public final class HighlightInfoUpdaterImpl extends HighlightInfoUpdater impleme
for (Map.Entry<Object, ToolHighlights> toolEntry : map.entrySet()) {
ToolHighlights toolHighlights = toolEntry.getValue();
Object toolId = toolEntry.getKey();
invokeProcessQueueToTriggerEvictedListener(toolHighlights.elementHighlights);
if (!toolPredicate.matches(toolId)) {
continue;
}