< prev index next >

src/hotspot/share/prims/jniCheck.cpp

Print this page

        

@@ -2002,10 +2002,51 @@
     jobject result = UNCHECKED()->GetModule(env,clazz);
     functionExit(thr);
     return result;
 JNI_END
 
+JNI_ENTRY_CHECKED(void*,
+    checked_jni_GetFlattenedArrayElements(JNIEnv* env, jarray array, jboolean* isCopy))
+    functionEnter(thr);
+    void* result = UNCHECKED()->GetFlattenedArrayElements(env, array, isCopy);
+    functionExit(thr);
+    return result;
+
+JNI_END
+
+JNI_ENTRY_CHECKED(void,
+    checked_jni_ReleaseFlattenedArrayElements(JNIEnv* env, jarray array, void* elem, jint mode))
+    functionEnter(thr);
+    UNCHECKED()->ReleaseFlattenedArrayElements(env, array, elem, mode);
+    functionExit(thr);
+    return;
+JNI_END
+
+JNI_ENTRY_CHECKED(jclass,
+    checked_jni_GetFlattenedArrayElementClass(JNIEnv* env, jarray array))
+    functionEnter(thr);
+    jclass clazz = UNCHECKED()->GetFlattenedArrayElementClass(env, array);
+    functionExit(thr);
+    return clazz;
+JNI_END
+
+JNI_ENTRY_CHECKED(jsize,
+    checked_jni_GetFlattenedArrayElementSize(JNIEnv* env, jarray array))
+    functionEnter(thr);
+    jsize size = UNCHECKED()->GetFlattenedArrayElementSize(env, array);
+    functionExit(thr);
+    return size;
+JNI_END
+
+JNI_ENTRY_CHECKED(jsize,
+    checked_jni_GetFieldOffsetInFlattenedLayout(JNIEnv* env, jclass clazz, const char *name, const char *signature, jboolean* isFlattened))
+    functionEnter(thr);
+    jsize offset = UNCHECKED()->GetFieldOffsetInFlattenedLayout(env, clazz, name, signature, isFlattened);
+    functionExit(thr);
+    return offset;
+JNI_END
+
 /*
  * Structure containing all checked jni functions
  */
 struct JNINativeInterface_  checked_jni_NativeInterface = {
     NULL,

@@ -2287,11 +2328,18 @@
 
     checked_jni_GetObjectRefType,
 
     // Module Features
 
-    checked_jni_GetModule
+    checked_jni_GetModule,
+
+    // Flattened arrays Features
+    checked_jni_GetFlattenedArrayElements,
+    checked_jni_ReleaseFlattenedArrayElements,
+    checked_jni_GetFlattenedArrayElementClass,
+    checked_jni_GetFlattenedArrayElementSize,
+    checked_jni_GetFieldOffsetInFlattenedLayout
 };
 
 
 // Returns the function structure
 struct JNINativeInterface_* jni_functions_check() {
< prev index next >