if (VM.VerifyAssertions) VM.assert(mine.freeLock != null);
if (VM.VerifyAssertions) VM._assert(mine.freeLock != null);
  private static void globalizeFreeLocks () {    VM_Processor mine = VM_Processor.getCurrentProcessor();    if (mine.freeLocks <= LOCK_ALLOCATION_UNIT_SIZE) {      if (VM.VerifyAssertions) VM.assert(mine.freeLock != null);      VM_Lock q = mine.freeLock;      while (q.nextFreeLock != null) {	q = q.nextFreeLock;      }      lockAllocationMutex.lock();      q.nextFreeLock  = globalFreeLock;      globalFreeLock  = mine.freeLock;      globalFreeLocks += mine.freeLocks;      lockAllocationMutex.unlock();      mine.freeLock   = null;      mine.freeLocks  = 0;    } else {      VM_Lock p = null;      VM_Lock q = mine.freeLock;      for (int i=0; i<LOCK_ALLOCATION_UNIT_SIZE; i++) {	p = q;	q = q.nextFreeLock;      }      lockAllocationMutex.lock();      p.nextFreeLock   = globalFreeLock;      globalFreeLock   = mine.freeLock;      globalFreeLocks += LOCK_ALLOCATION_UNIT_SIZE;      lockAllocationMutex.unlock();      mine.freeLock    = q;      mine.freeLocks  -= LOCK_ALLOCATION_UNIT_SIZE;    }  }