src/share/native/java/util/zip/ZipFile.c
Print this page
@@ -79,11 +79,12 @@
}
}
JNIEXPORT jlong JNICALL
Java_java_util_zip_ZipFile_open(JNIEnv *env, jclass cls, jstring name,
- jint mode, jlong lastModified)
+ jint mode, jlong lastModified,
+ jboolean usemmap)
{
const char *path = JNU_GetStringPlatformChars(env, name, 0);
char *msg = 0;
jlong result = 0;
int flag = 0;
@@ -107,11 +108,11 @@
if (zfd < 0) {
throwFileNotFoundException(env, name);
goto finally;
}
#endif
- zip = ZIP_Put_In_Cache(path, zfd, &msg, lastModified);
+ zip = ZIP_Put_In_Cache0(path, zfd, &msg, lastModified, usemmap);
}
if (zip != 0) {
result = ptr_to_jlong(zip);
} else if (msg != 0) {