@Entrypoint @Inline @NoNullCheck @Unpreemptible public static void inlineUnlockWithoutRaceDetInstr(Object o, Offset lockOffset) { inlineUnlockHelper(o, lockOffset); }
@NoInline @NoNullCheck @Unpreemptible private static void inlineUnlockNoInline(Object o, Offset lockOffset) { // RaceDet: instrument lock release if (RaceDet.syncOps() && RaceDet.isApplicableThread()) { if (getRecursionCountLocked(o, lockOffset) == 1) { Algo.release(o); } } inlineUnlockHelper(o, lockOffset); }