< prev index next >
test/hotspot/jtreg/vmTestbase/gc/gctests/nativeGC01/libnativeGC01.cpp
Print this page
rev 52200 : [mq]: spaces
@@ -25,11 +25,11 @@
#include <stdio.h>
extern "C" {
/*
- * A C function that takes a reference to java Object( a circular Linked list)
+ * A C function that takes a reference to java Object(a circular Linked list)
* and utilizes this reference to do a java method callback to determine the
* number of elements in the linked list
*/
JNIEXPORT jint JNICALL
Java_gc_gctests_nativeGC01_nativeGC01_nativeMethod01
@@ -53,12 +53,12 @@
that counts the number of elements in the
circular linked list
*/
clss = env->GetObjectClass(linked_list);
- mid2 = env->GetMethodID(clss, "getLength", "()I" );
- if (mid2 == 0) {
+ mid2 = env->GetMethodID(clss, "getLength", "()I");
+ if (mid2 == 0) {
printf("couldnt locate method getLength()");
return -1;
}
elementCount = env->CallIntMethod(linked_list, mid2);
return elementCount;
< prev index next >