Skip to content

Commit 8ec8b78

Browse files
committed
Increase recursion check limit to 100 #5
1 parent d9d4953 commit 8ec8b78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kmp-nativecoroutines-compiler/src/main/kotlin/com/rickclephas/kmp/nativecoroutines/compiler/KmpNativeCoroutinesSyntheticResolveExtension.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ internal class KmpNativeCoroutinesSyntheticResolveExtension(
4343
private fun isRecursiveCall(): Boolean {
4444
val stackTrace = Throwable().stackTrace
4545
val currentElement = stackTrace.getOrNull(1) ?: return false
46-
// The original call should be in the first 70 elements
47-
for (i in 2 until min(70, stackTrace.size)) {
46+
// The original call should be in the first 100 elements
47+
for (i in 2 until min(100, stackTrace.size)) {
4848
if (stackTrace[i].className == currentElement.className)
4949
return true
5050
}

0 commit comments

Comments
 (0)