src/java.base/share/native/libzip/CRC32.c
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8076112 Cdiff src/java.base/share/native/libzip/CRC32.c

src/java.base/share/native/libzip/CRC32.c

Print this page
rev 12262 : 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Summary: Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon

*** 41,51 **** buf[0] = (Bytef)b; return crc32(crc, buf, 1); } JNIEXPORT jint JNICALL ! Java_java_util_zip_CRC32_updateBytes(JNIEnv *env, jclass cls, jint crc, jarray b, jint off, jint len) { Bytef *buf = (*env)->GetPrimitiveArrayCritical(env, b, 0); if (buf) { crc = crc32(crc, buf + off, len); --- 41,51 ---- buf[0] = (Bytef)b; return crc32(crc, buf, 1); } JNIEXPORT jint JNICALL ! Java_java_util_zip_CRC32_updateBytes0(JNIEnv *env, jclass cls, jint crc, jarray b, jint off, jint len) { Bytef *buf = (*env)->GetPrimitiveArrayCritical(env, b, 0); if (buf) { crc = crc32(crc, buf + off, len);
*** 59,69 **** { return crc32(crc, (Bytef*)buf, len); } JNIEXPORT jint JNICALL ! Java_java_util_zip_CRC32_updateByteBuffer(JNIEnv *env, jclass cls, jint crc, jlong address, jint off, jint len) { Bytef *buf = (Bytef *)jlong_to_ptr(address); if (buf) { crc = crc32(crc, buf + off, len); --- 59,69 ---- { return crc32(crc, (Bytef*)buf, len); } JNIEXPORT jint JNICALL ! Java_java_util_zip_CRC32_updateByteBuffer0(JNIEnv *env, jclass cls, jint crc, jlong address, jint off, jint len) { Bytef *buf = (Bytef *)jlong_to_ptr(address); if (buf) { crc = crc32(crc, buf + off, len);
src/java.base/share/native/libzip/CRC32.c
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File