< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/IterateOverObjectsReachableFromObject/iterobjreachobj002/iterobjreachobj002.cpp
Print this page
rev 52200 : [mq]: spaces
*** 52,68 ****
/* ============================================================================= */
/** jvmtiObjectReferenceCallback for first iteration. */
jvmtiIterationControl JNICALL
! objectReferenceCallback1( jvmtiObjectReferenceKind reference_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! jlong referrer_tag,
! jint referrer_index,
! void* user_data) {
objectCount++;
/* Set tag */
*tag_ptr = objectCount;
--- 52,68 ----
/* ============================================================================= */
/** jvmtiObjectReferenceCallback for first iteration. */
jvmtiIterationControl JNICALL
! objectReferenceCallback1(jvmtiObjectReferenceKind reference_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! jlong referrer_tag,
! jint referrer_index,
! void* user_data) {
objectCount++;
/* Set tag */
*tag_ptr = objectCount;
*** 78,94 ****
return JVMTI_ITERATION_ABORT;
}
/** jvmtiObjectReferenceCallback for second iteration. */
jvmtiIterationControl JNICALL
! objectReferenceCallback2( jvmtiObjectReferenceKind reference_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! jlong referrer_tag,
! jint referrer_index,
! void* user_data) {
objectCount--;
if (!NSK_JVMTI_VERIFY(st_jvmti->Deallocate((unsigned char*)objectDescBuf))) {
nsk_jvmti_setFailStatus();
--- 78,94 ----
return JVMTI_ITERATION_ABORT;
}
/** jvmtiObjectReferenceCallback for second iteration. */
jvmtiIterationControl JNICALL
! objectReferenceCallback2(jvmtiObjectReferenceKind reference_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! jlong referrer_tag,
! jint referrer_index,
! void* user_data) {
objectCount--;
if (!NSK_JVMTI_VERIFY(st_jvmti->Deallocate((unsigned char*)objectDescBuf))) {
nsk_jvmti_setFailStatus();
< prev index next >