< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/allocation/AP07/ap07t002/ap07t002.cpp
Print this page
rev 52215 : 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Summary:
Reviewed-by:
*** 45,77 ****
static const char* DEBUGEE_SIGNATURE = "Lnsk/jvmti/scenarios/allocation/AP07/ap07t002;";
static const jlong IGNORE_TAG = (jlong)10l;
/* jvmtiHeapRootCallback */
jvmtiIterationControl JNICALL
! heapRootCallback( jvmtiHeapRootKind root_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! void* user_data) {
if (*tag_ptr > 0) {
NSK_DISPLAY2("heapRootCallback: root kind=%s, tag=%d\n", TranslateRootKind(root_kind), (long)*tag_ptr);
}
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) {
if (*tag_ptr > 0) {
NSK_DISPLAY2("stackReferenceCallback: root kind=%s, tag=%d\n", TranslateRootKind(root_kind), (long)*tag_ptr);
}
/* ignore referrees of right branch */
--- 45,77 ----
static const char* DEBUGEE_SIGNATURE = "Lnsk/jvmti/scenarios/allocation/AP07/ap07t002;";
static const jlong IGNORE_TAG = (jlong)10l;
/* jvmtiHeapRootCallback */
jvmtiIterationControl JNICALL
! heapRootCallback(jvmtiHeapRootKind root_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! void* user_data) {
if (*tag_ptr > 0) {
NSK_DISPLAY2("heapRootCallback: root kind=%s, tag=%d\n", TranslateRootKind(root_kind), (long)*tag_ptr);
}
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) {
if (*tag_ptr > 0) {
NSK_DISPLAY2("stackReferenceCallback: root kind=%s, tag=%d\n", TranslateRootKind(root_kind), (long)*tag_ptr);
}
/* ignore referrees of right branch */
*** 82,98 ****
}
/* jvmtiObjectReferenceCallback */
jvmtiIterationControl JNICALL
! objectReferenceCallback( jvmtiObjectReferenceKind reference_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! jlong referrer_tag,
! jint referrer_index,
! void* user_data) {
if (*tag_ptr > 0) {
NSK_DISPLAY2("objectReferenceCallback: reference kind=%s, tag=%d\n", TranslateObjectRefKind(reference_kind), (long)*tag_ptr);
}
if (*tag_ptr > IGNORE_TAG) {
--- 82,98 ----
}
/* jvmtiObjectReferenceCallback */
jvmtiIterationControl JNICALL
! objectReferenceCallback(jvmtiObjectReferenceKind reference_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! jlong referrer_tag,
! jint referrer_index,
! void* user_data) {
if (*tag_ptr > 0) {
NSK_DISPLAY2("objectReferenceCallback: reference kind=%s, tag=%d\n", TranslateObjectRefKind(reference_kind), (long)*tag_ptr);
}
if (*tag_ptr > IGNORE_TAG) {
*** 104,117 ****
/************************/
JNIEXPORT void JNICALL
! Java_nsk_jvmti_scenarios_allocation_AP07_ap07t002_setTag( JNIEnv* jni,
! jobject obj,
! jobject target,
! jlong tag ) {
if (!NSK_JVMTI_VERIFY(jvmti->SetTag(target, tag))) {
nsk_jvmti_setFailStatus();
}
}
--- 104,117 ----
/************************/
JNIEXPORT void JNICALL
! Java_nsk_jvmti_scenarios_allocation_AP07_ap07t002_setTag(JNIEnv* jni,
! jobject obj,
! jobject target,
! jlong tag) {
if (!NSK_JVMTI_VERIFY(jvmti->SetTag(target, tag))) {
nsk_jvmti_setFailStatus();
}
}
< prev index next >