From 071663c9403bc1200622c094e8588828c12910c9 Mon Sep 17 00:00:00 2001 From: Konstantin Nisht Date: Wed, 29 Jul 2026 12:05:32 +0200 Subject: [PATCH] misc [wsm]: Fix OOBE in recursive update checker (cherry picked from commit d707dfe664154f7d1363a215ab889bf7d4a8a236) IJ-CR-216025 GitOrigin-RevId: 8e5ab993ff9bcfafd29dc4415dd85709f25e736d --- .../intellij/workspaceModel/ide/impl/WorkspaceModelImpl.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/projectModel-impl/src/com/intellij/workspaceModel/ide/impl/WorkspaceModelImpl.kt b/platform/projectModel-impl/src/com/intellij/workspaceModel/ide/impl/WorkspaceModelImpl.kt index 70dcd85f399c..f885caa86f26 100644 --- a/platform/projectModel-impl/src/com/intellij/workspaceModel/ide/impl/WorkspaceModelImpl.kt +++ b/platform/projectModel-impl/src/com/intellij/workspaceModel/ide/impl/WorkspaceModelImpl.kt @@ -364,6 +364,10 @@ open class WorkspaceModelImpl : WorkspaceModelInternal { * Things that must be considered if you'd love to change this logic: IDEA-342103 */ private fun checkRecursiveUpdate() = checkRecursiveUpdateTimeMs.addMeasuredTime { + val stackTrace = RuntimeException().stackTrace + if (stackTrace.size < 6) { + return@addMeasuredTime + } val stackStraceIterator = RuntimeException().stackTrace.iterator() // Skip six methods of the current update repeat(6) { stackStraceIterator.next() }