int lockOffset = getThinLockOffset(ref); if (lockOffset != -1) {
Offset lockOffset = getThinLockOffset(ref); if (lockOffset.isMax()) {
  public static void dumpHeader(Object ref) {    // TIB dumped in VM_ObjectModel    int lockOffset = getThinLockOffset(ref);    if (lockOffset != -1) {      VM.sysWrite(" THIN LOCK=");      VM.sysWriteHex(VM_Magic.getIntAtOffset(ref, lockOffset));    }  }