this.id = id; this.transferQueue = new VM_ThreadQueue(VM_EventLogger.TRANSFER_QUEUE); this.transferMutex = new VM_ProcessorLock(); this.readyQueue    = new VM_ThreadQueue(VM_EventLogger.READY_QUEUE); this.ioQueue       = new VM_ThreadIOQueue(VM_EventLogger.IO_QUEUE); this.idleQueue     = new VM_ThreadQueue(VM_EventLogger.IDLE_QUEUE); this.lastLockIndex = -1; this.isInSelect    = false; this.processorMode = RVM; this.djvDaemon     = false;
this.id                = id; this.transferQueue     = new VM_ThreadQueue(VM_EventLogger.TRANSFER_QUEUE); this.transferMutex     = new VM_ProcessorLock(); this.readyQueue        = new VM_ThreadQueue(VM_EventLogger.READY_QUEUE); this.ioQueue           = new VM_ThreadIOQueue(VM_EventLogger.IO_QUEUE); this.idleQueue         = new VM_ThreadQueue(VM_EventLogger.IDLE_QUEUE); this.chosenProcessorId = id; this.lastLockIndex     = -1; this.isInSelect        = false; this.processorMode     = RVM; this.djvDaemon         = false;
  VM_Processor (int id) {    //-#if RVM_FOR_IA32    // presave JTOC register contents     // (so lintel compiler can us JTOC for scratch)    if (VM.runningVM) jtoc = VM_Magic.getJTOC();    //-#endif    this.id = id;    this.transferQueue = new VM_ThreadQueue(VM_EventLogger.TRANSFER_QUEUE);    this.transferMutex = new VM_ProcessorLock();    this.readyQueue    = new VM_ThreadQueue(VM_EventLogger.READY_QUEUE);    this.ioQueue       = new VM_ThreadIOQueue(VM_EventLogger.IO_QUEUE);    this.idleQueue     = new VM_ThreadQueue(VM_EventLogger.IDLE_QUEUE);    this.lastLockIndex = -1;    this.isInSelect    = false;    this.processorMode = RVM;    this.djvDaemon     = false;    //-#if RVM_WITH_DEDICATED_NATIVE_PROCESSORS     //// alternate implementation of jni    //-#else                                    // default implementation of jni    lastVPStatusIndex = (lastVPStatusIndex + VP_STATUS_STRIDE) % VP_STATUS_SIZE;    this.vpStatusIndex = lastVPStatusIndex;    this.vpStatusAddress = VM_Magic.objectAsAddress(vpStatus) +       (this.vpStatusIndex << 2);    if (VM.VerifyAssertions)       VM.assert(vpStatus[this.vpStatusIndex] == UNASSIGNED_VP_STATUS);    vpStatus[this.vpStatusIndex] = IN_JAVA;    //-#endif    // allocate & initialize collection (write buffers..) and allocation     // data structures    VM_Collector.setupProcessor( this );  }