int old = VM_Magic.getIntAtOffset(o, lockOffset); VM._assert((old & TL_FAT_LOCK_MASK) != 0); VM._assert(l == VM_Scheduler.locks[(old & TL_LOCK_ID_MASK) >>> TL_LOCK_ID_SHIFT]);
VM_Word old = VM_Magic.getWordAtOffset(o, lockOffset); VM._assert(!(old.and(TL_FAT_LOCK_MASK).isZero())); VM._assert(l == VM_Scheduler.locks[old.and(TL_LOCK_ID_MASK).rshl(TL_LOCK_ID_SHIFT).toInt()]);
  static void deflate (Object o, int lockOffset, VM_Lock l) {    if (VM.VerifyAssertions) {      int old = VM_Magic.getIntAtOffset(o, lockOffset);      VM._assert((old & TL_FAT_LOCK_MASK) != 0);      VM._assert(l == VM_Scheduler.locks[(old & TL_LOCK_ID_MASK) >>> TL_LOCK_ID_SHIFT]);    }    int old;    int changed;    do {      old = VM_Magic.prepareInt(o, lockOffset);    } while (!VM_Magic.attemptInt(o, lockOffset, old, old & TL_UNLOCK_MASK));  }