if (DEBUG) {  if (index != 0 && cmids[index] != cmid) { VM.sysWrite("cmids["); VM.sysWrite(index, false); VM.sysWrite("] != "); VM.sysWrite(cmid, false); VM.sysWrite("\n");  VM.sysWrite("cmids["); VM.sysWrite(index, false); VM.sysWrite("] = "); VM.sysWrite(cmids[index], false); VM.sysWrite("\n"); } }
  private int findHeapIdx(int cmid) {    if (cmid < map.length) {      int index = map[cmid];      if (DEBUG) {	// assert(index == 0 || cmids[index] == cmid);	if (index != 0 && cmids[index] != cmid) {	  VM.sysWrite("cmids[");	  VM.sysWrite(index, false);	  VM.sysWrite("] != ");	  VM.sysWrite(cmid, false);	  VM.sysWrite("\n");	  	  VM.sysWrite("cmids[");	  VM.sysWrite(index, false);	  VM.sysWrite("] = ");	  VM.sysWrite(cmids[index], false);	  VM.sysWrite("\n");	}      }	      return index;    } else {      return 0;    }  }