if (verboseJNI) VM.sysWrite("JNI called: GetBooleanArrayRegion  \n");
if (traceJNI) VM.sysWrite("JNI called: GetBooleanArrayRegion  \n");
  private static void GetBooleanArrayRegion(int envJREF, int arrayJREF, int startIndex,                                             int length, VM_Address bufAddress) {    if (verboseJNI) VM.sysWrite("JNI called: GetBooleanArrayRegion  \n");    VM_JNIEnvironment env;    try {      env = VM_Thread.getCurrentThread().getJNIEnv();      boolean sourceArray[] = (boolean []) env.getJNIRef(arrayJREF);      if ((startIndex<0) || (startIndex+length>sourceArray.length)) {        env.recordException(new ArrayIndexOutOfBoundsException());        return;      }      VM_Memory.memcopy(bufAddress, VM_Magic.objectAsAddress(sourceArray).add(startIndex), length);     } catch (Throwable unexpected) {      env = VM_Thread.getCurrentThread().getJNIEnv();      env.recordException(unexpected);      return;    }  }