int old = VM_Magic.getIntAtOffset(o, lockOffset); if ((old & TL_FAT_LOCK_MASK) != 0) { int index = (old & TL_LOCK_ID_MASK) >>> TL_LOCK_ID_SHIFT;
VM_Word old = VM_Magic.getWordAtOffset(o, lockOffset); if (!(old.and(TL_FAT_LOCK_MASK).isZero())) { int index = old.and(TL_LOCK_ID_MASK).rshl(TL_LOCK_ID_SHIFT).toInt();
  static VM_Lock getHeavyLock (Object o, int lockOffset, boolean create) {    int old = VM_Magic.getIntAtOffset(o, lockOffset);    if ((old & TL_FAT_LOCK_MASK) != 0) { // already a fat lock in place      int index = (old & TL_LOCK_ID_MASK) >>> TL_LOCK_ID_SHIFT;      return VM_Scheduler.locks[index];    } else if (create) {      return inflate(o, lockOffset);    } else {      return null;    }  }