VM.sysWriteln("Will now spin without trying to acquire lock");
VM.sysWriteln("Will now spin for one second and die");
  public void acquire() {    int retryCount = 0;    double localStart = 0.0; // Avoid getting time unnecessarily    while (!VM_Synchronization.tryCompareAndSwap(this, lockFieldOffset, UNLOCKED, LOCKED)) {      if (verbose > 0 & retryCount == 0) {	VM.sysWrite("WARNING: Thread ");	VM_Thread.getCurrentThread().dump();	VM.sysWrite(" starting to retry on acquiring lock ", id);	VM.sysWriteln(" ", name);      }      retryCount++;      if (localStart == 0.0) localStart = VM_Time.now();      if (MAX_RETRY > 0 && retryCount > MAX_RETRY) {	double end = VM_Time.now();	VM.sysWrite("\nPossible deadlock: failed to acquire lock ", id);	VM.sysWrite(" ", name);	VM.sysWrite(" after trying ", retryCount);	VM.sysWrite(" times or ");	VM.sysWrite(1000000.0 * (end - localStart));	VM.sysWriteln(" micro-seconds");	VM.sysWrite("Locking thread: "); thread.dump(1); VM.sysWriteln(" at position ", where);	VM.sysWrite("Locked out thread: "); VM_Thread.getCurrentThread().dump(1); VM.sysWriteln();	VM.sysWriteln("Will now spin without trying to acquire lock");        VM_Scheduler.dumpStack();	while (true)	  ;      }    }    //    start = VM_Time.now();    //    thread = VM_Thread.getCurrentThread();    setStart(VM_Time.now());    setThread(VM_Thread.getCurrentThread());    if (verbose > 1) {      VM.sysWrite("Thread ");      thread.dump();      VM.sysWrite(" acquired lock ", id);      VM.sysWriteln(" ", name);    }    VM_Magic.isync();  }