Open
Description
We have a report in public Slack about very slow CMP application: https://kotlinlang.slack.com/archives/C0346LWVBJ4/p1732321550585009
Luckily, the user provided an instrument profile trace, and, it's visible that some huge chunks of work are spent in our synchronization.
Notably, a good chunk (41%) of the time between 02:01 and 02:10 is spent within
kfun:kotlinx.coroutines.internal.LimitedDispatcher.obtainTaskOrDeallocateWorker#internal
-> kfun:kotlinx.atomicfu.locks.SynchronizedObject#lock(){}
. It requires further investigation, but it is worth taking a look
Instruments file for the history: Hang iPhone SE CMP 1.7.0.trace.zip