monitorEnter
and monitorExit
are intrinsics, compiler do the corresponding JVM instructions.
InlineOnly
means that the Java method corresponding to this Kotlin function is marked private so that Java code can not access it (which is the only way to call an inline function without actually inlining it).