From f7f35afffbfbd722bbb676ddc68ceeae7a9c62d5 Mon Sep 17 00:00:00 2001 From: Konstantin Nisht Date: Wed, 10 Dec 2025 11:01:08 +0100 Subject: [PATCH] [threading, indexing] IJPL-207743: Improve debug logging GitOrigin-RevId: d21bbe961f1e949f587f9fe31c490920790cd8d3 --- platform/locking.impl/src/NestedLocksThreadingSupport.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/locking.impl/src/NestedLocksThreadingSupport.kt b/platform/locking.impl/src/NestedLocksThreadingSupport.kt index b2e30d54ffce..968370cc7ca8 100644 --- a/platform/locking.impl/src/NestedLocksThreadingSupport.kt +++ b/platform/locking.impl/src/NestedLocksThreadingSupport.kt @@ -15,7 +15,6 @@ import com.intellij.platform.locking.impl.listeners.LegacyProgressIndicatorProvi import com.intellij.platform.locking.impl.listeners.LockAcquisitionListener import com.intellij.util.IntelliJCoroutinesFacade import com.intellij.util.ReflectionUtil -import com.intellij.util.SmartList import kotlinx.coroutines.* import org.jetbrains.annotations.ApiStatus import java.util.* @@ -1641,7 +1640,7 @@ class NestedLocksThreadingSupport : ThreadingSupport { val state = getComputationState() val permit = state.getThisThreadPermit() if (permit !is ParallelizablePermit.WriteIntent) { - throw IllegalStateException("This function expects the Write-Intent read action to be acquired") + throw IllegalStateException("This function expects the Write-Intent read action to be acquired; current permit: $permit") } // for now, we release only the top-level WI lock. // There is no evidence that this method is called in deep parallelization stacks