@@ -383,7 +383,7 @@ JNICALL throwNew(JNIEnv *env, jclass clazz, const char *message)
383
383
{
384
384
jmethodID constructor;
385
385
jobject throwable;
386
-
386
+
387
387
if (message) {
388
388
jstring messageObject;
389
389
constructor = getMethodID (env, clazz, " <init>" , " (Ljava/lang/String;)V" );
@@ -470,7 +470,7 @@ void JNICALL gpCheckInitialize(J9VMThread* env, J9Class* clazz)
470
470
471
471
472
472
473
- void
473
+ void
474
474
gpCheckCallin (JNIEnv *env, jobject receiver, jclass cls, jmethodID methodID, void * args)
475
475
{
476
476
J9RedirectedCallInArgs handlerArgs;
@@ -1882,9 +1882,9 @@ getMethodOrFieldID(JNIEnv *env, jclass classReference, const char *name, const c
1882
1882
UDATA inconsistentData = 0 ;
1883
1883
id = getJNIFieldID (vmThread, declaringClass, (J9ROMFieldShape *) element, offset, &inconsistentData);
1884
1884
if (0 != inconsistentData) {
1885
- /* declaringClass->romClass & element are inconsistent due to
1885
+ /* declaringClass->romClass & element are inconsistent due to
1886
1886
* class redefinition. Retry the operation and hope a redefinition
1887
- * doesn't occur again
1887
+ * doesn't occur again
1888
1888
*/
1889
1889
goto retry;
1890
1890
}
@@ -2056,8 +2056,8 @@ monitorEnter(JNIEnv* env, jobject obj)
2056
2056
#if defined(J9VM_OPT_VALHALLA_VALUE_TYPES)
2057
2057
if (J9_IS_J9CLASS_VALUETYPE (badClass)) {
2058
2058
setCurrentExceptionNLSWithArgs (vmThread, J9NLS_VM_ERROR_BYTECODE_OBJECTREF_CANNOT_BE_VALUE_TYPE, J9VMCONSTANTPOOL_JAVALANGIDENTITYEXCEPTION, J9UTF8_LENGTH (badClassName), J9UTF8_DATA (badClassName));
2059
- } else
2060
- #endif /* defined(J9VM_OPT_VALHALLA_VALUE_TYPES) */
2059
+ } else
2060
+ #endif /* defined(J9VM_OPT_VALHALLA_VALUE_TYPES) */
2061
2061
{
2062
2062
Assert_VM_true (J9_ARE_ALL_BITS_SET (vmThread->javaVM ->extendedRuntimeFlags2 , J9_EXTENDED_RUNTIME2_VALUE_BASED_EXCEPTION));
2063
2063
setCurrentExceptionNLSWithArgs (vmThread, J9NLS_VM_ERROR_BYTECODE_OBJECTREF_CANNOT_BE_VALUE_BASED, J9VMCONSTANTPOOL_JAVALANGVIRTUALMACHINEERROR, J9UTF8_LENGTH (badClassName), J9UTF8_DATA (badClassName));
@@ -2159,7 +2159,7 @@ ensureJNIIDTable(J9VMThread *currentThread, J9Class* clazz)
2159
2159
jniIDs = clazz->jniIDs ;
2160
2160
if (jniIDs == NULL ) {
2161
2161
J9ROMClass * romclass = clazz->romClass ;
2162
- UDATA size = (romclass-> romMethodCount + romclass-> romFieldCount ) * sizeof (void *);
2162
+ UDATA size = J9VM_NUM_OF_ENTRIES_IN_CLASS_JNIID_TABLE (romclass) * sizeof (void *);
2163
2163
2164
2164
jniIDs = (void **)j9mem_allocate_memory (size, J9MEM_CATEGORY_JNI);
2165
2165
if (jniIDs != NULL ) {
@@ -2470,7 +2470,7 @@ getModule(JNIEnv *env, jclass clazz)
2470
2470
{
2471
2471
J9VMThread *vmThread = (J9VMThread *) env;
2472
2472
jobject module = NULL ;
2473
-
2473
+
2474
2474
VM_VMAccess::inlineEnterVMFromJNI (vmThread);
2475
2475
if (NULL == clazz) {
2476
2476
setCurrentExceptionUTF (vmThread, J9VMCONSTANTPOOL_JAVALANGNULLPOINTEREXCEPTION, NULL );
@@ -2688,7 +2688,7 @@ defineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf, jsi
2688
2688
}
2689
2689
}
2690
2690
}
2691
-
2691
+
2692
2692
result = (jclass)VM_VMHelpers::createLocalRef (env, J9VM_J9CLASS_TO_HEAPCLASS (clazz));
2693
2693
}
2694
2694
0 commit comments