public static void copyMemory(Object srcBase, long srcOffset,
                                Object destBase, long destOffset,
                                long bytes) {
    try {
      copyMemory.invokeExact(srcBase, srcOffset, destBase, destOffset, bytes);
    }
    catch (Throwable throwable) {
      throw new RuntimeException(throwable);
    }
  }
public static void copyMemory(Object srcBase, long srcOffset,
                                Object destBase, long destOffset,
                                long bytes)