Example #1
0
 @Entrypoint
 @Inline
 @NoNullCheck
 @Unpreemptible
 public static void inlineUnlockWithoutRaceDetInstr(Object o, Offset lockOffset) {
   inlineUnlockHelper(o, lockOffset);
 }
Example #2
0
  @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);
  }