< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/IterateOverReachableObjects/iterreachobj004/iterreachobj004.cpp

Print this page
rev 52200 : [mq]: spaces

*** 44,58 **** /* ============================================================================= */ /* jvmtiHeapRootCallback */ jvmtiIterationControl JNICALL ! heapRootCallback( jvmtiHeapRootKind root_kind, ! jlong class_tag, ! jlong size, ! jlong* tag_ptr, ! void* user_data) { *tag_ptr = (jlong)++objCounter; if (!NSK_JVMTI_VERIFY(st_jvmti->SetEnvironmentLocalStorage(storage_data))) { nsk_jvmti_setFailStatus(); --- 44,58 ---- /* ============================================================================= */ /* jvmtiHeapRootCallback */ jvmtiIterationControl JNICALL ! heapRootCallback(jvmtiHeapRootKind root_kind, ! jlong class_tag, ! jlong size, ! jlong* tag_ptr, ! void* user_data) { *tag_ptr = (jlong)++objCounter; if (!NSK_JVMTI_VERIFY(st_jvmti->SetEnvironmentLocalStorage(storage_data))) { nsk_jvmti_setFailStatus();
*** 64,81 **** return JVMTI_ITERATION_ABORT; } if (storage_data != storage_ptr) { NSK_COMPLAIN2("heapRootCallback: Local storage address was corrupted: %p ,\n\texpected value: %p\n", ! storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } if (strcmp(storage_data, (char *)storage_ptr) != 0) { NSK_COMPLAIN2("heapRootCallback: Local storage was corrupted: %s ,\n\texpected value: %s\n", ! (char *)storage_ptr, storage_data ); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } /* --- 64,81 ---- return JVMTI_ITERATION_ABORT; } if (storage_data != storage_ptr) { NSK_COMPLAIN2("heapRootCallback: Local storage address was corrupted: %p ,\n\texpected value: %p\n", ! storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } if (strcmp(storage_data, (char *)storage_ptr) != 0) { NSK_COMPLAIN2("heapRootCallback: Local storage was corrupted: %s ,\n\texpected value: %s\n", ! (char *)storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } /*
*** 84,102 **** return JVMTI_ITERATION_CONTINUE; } /* jvmtiStackReferenceCallback */ jvmtiIterationControl JNICALL ! stackReferenceCallback( jvmtiHeapRootKind root_kind, ! jlong class_tag, ! jlong size, ! jlong* tag_ptr, ! jlong thread_tag, ! jint depth, ! jmethodID method, ! jint slot, ! void* user_data) { *tag_ptr = (jlong)++objCounter; if (!NSK_JVMTI_VERIFY(st_jvmti->SetEnvironmentLocalStorage(storage_data))) { nsk_jvmti_setFailStatus(); --- 84,102 ---- return JVMTI_ITERATION_CONTINUE; } /* jvmtiStackReferenceCallback */ jvmtiIterationControl JNICALL ! stackReferenceCallback(jvmtiHeapRootKind root_kind, ! jlong class_tag, ! jlong size, ! jlong* tag_ptr, ! jlong thread_tag, ! jint depth, ! jmethodID method, ! jint slot, ! void* user_data) { *tag_ptr = (jlong)++objCounter; if (!NSK_JVMTI_VERIFY(st_jvmti->SetEnvironmentLocalStorage(storage_data))) { nsk_jvmti_setFailStatus();
*** 108,125 **** return JVMTI_ITERATION_ABORT; } if (storage_data != storage_ptr) { NSK_COMPLAIN2("stackReferenceCallback: Local storage address was corrupted: %p ,\n\texpected value: %p\n", ! storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } if (strcmp(storage_data, (char *)storage_ptr) != 0) { NSK_COMPLAIN2("stackReferenceCallback: Local storage was corrupted: %s ,\n\texpected value: %s\n", ! (char *)storage_ptr, storage_data ); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } /* --- 108,125 ---- return JVMTI_ITERATION_ABORT; } if (storage_data != storage_ptr) { NSK_COMPLAIN2("stackReferenceCallback: Local storage address was corrupted: %p ,\n\texpected value: %p\n", ! storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } if (strcmp(storage_data, (char *)storage_ptr) != 0) { NSK_COMPLAIN2("stackReferenceCallback: Local storage was corrupted: %s ,\n\texpected value: %s\n", ! (char *)storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } /*
*** 129,145 **** } /* jvmtiObjectReferenceCallback */ jvmtiIterationControl JNICALL ! objectReferenceCallback( jvmtiObjectReferenceKind reference_kind, ! jlong class_tag, ! jlong size, ! jlong* tag_ptr, ! jlong referrer_tag, ! jint referrer_index, ! void* user_data) { *tag_ptr = (jlong)++objCounter; if (!NSK_JVMTI_VERIFY(st_jvmti->SetEnvironmentLocalStorage(storage_data))) { nsk_jvmti_setFailStatus(); --- 129,145 ---- } /* jvmtiObjectReferenceCallback */ jvmtiIterationControl JNICALL ! objectReferenceCallback(jvmtiObjectReferenceKind reference_kind, ! jlong class_tag, ! jlong size, ! jlong* tag_ptr, ! jlong referrer_tag, ! jint referrer_index, ! void* user_data) { *tag_ptr = (jlong)++objCounter; if (!NSK_JVMTI_VERIFY(st_jvmti->SetEnvironmentLocalStorage(storage_data))) { nsk_jvmti_setFailStatus();
*** 151,168 **** return JVMTI_ITERATION_ABORT; } if (storage_data != storage_ptr) { NSK_COMPLAIN2("objectReferenceCallback: Local storage address was corrupted: %p ,\n\texpected value: %p\n", ! storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } if (strcmp(storage_data, (char *)storage_ptr) != 0) { NSK_COMPLAIN2("objectReferenceCallback: Local storage was corrupted: %s ,\n\texpected value: %s\n", ! (char *)storage_ptr, storage_data ); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } NSK_DISPLAY1("objectRefenceCallback: %d\n", objCounter); --- 151,168 ---- return JVMTI_ITERATION_ABORT; } if (storage_data != storage_ptr) { NSK_COMPLAIN2("objectReferenceCallback: Local storage address was corrupted: %p ,\n\texpected value: %p\n", ! storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } if (strcmp(storage_data, (char *)storage_ptr) != 0) { NSK_COMPLAIN2("objectReferenceCallback: Local storage was corrupted: %s ,\n\texpected value: %s\n", ! (char *)storage_ptr, storage_data); nsk_jvmti_setFailStatus(); return JVMTI_ITERATION_ABORT; } NSK_DISPLAY1("objectRefenceCallback: %d\n", objCounter);
< prev index next >