• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package kotlinx.coroutines.debug.internal
2 
3 /**
4  * Object used to differentiate between agent installed statically or dynamically.
5  * This is done in a separate object so [DebugProbesImpl] can check for static installation
6  * without having to depend on [AgentPremain], which is not compatible with Android.
7  * Otherwise, access to `AgentPremain.isInstalledStatically` triggers the load of its internal `ClassFileTransformer`
8  * that is not available on Android.
9  *
10  * The entity (despite being internal) has usages in the following products
11  * - Fleet (Reflection): FleetDebugProbes
12  * - Android (Hard Coded, ignored for Leak Detection)
13  * - IntelliJ (Suppress KotlinInternalInJava): CoroutineDumpState
14  */
15 @PublishedApi
16 internal object AgentInstallationType {
17     internal var isInstalledStatically = false
18 }
19