From 87f2e853c8a7d64072089ee89549ac568f386a9d Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 5 Apr 2012 13:28:31 +0400 Subject: [PATCH] deadlock --- .../intellij/codeInsight/daemon/impl/PassExecutorService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/PassExecutorService.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/PassExecutorService.java index 43a72ed6ac51..146d3c73bf64 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/PassExecutorService.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/PassExecutorService.java @@ -482,6 +482,7 @@ public abstract class PassExecutorService implements Disposable { public static void log(ProgressIndicator progressIndicator, TextEditorHighlightingPass pass, @NonNls Object... info) { if (LOG.isDebugEnabled()) { + String docText = pass == null ? "" : StringUtil.first(pass.getDocument().getText(), 10, true); synchronized (PassExecutorService.class) { StringBuilder s = new StringBuilder(); for (Object o : info) { @@ -492,7 +493,7 @@ public abstract class PassExecutorService implements Disposable { + s + "; progress=" + (progressIndicator == null ? null : progressIndicator.hashCode()) + " " + (progressIndicator == null ? "?" : progressIndicator.isCanceled() ? "X" : "V") - + " : '" + (pass == null ? "" : StringUtil.first(pass.getDocument().getText(), 10, true)) + "'"; + + " : '" + docText + "'"; LOG.debug(message); //System.out.println(message); }