< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/allocation/AP05/ap05t001/ap05t001.cpp
Print this page
rev 52215 : 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Summary:
Reviewed-by:
*** 49,90 ****
static const long CLS_TAG = 1l, REFERRER_TAG = 2l, REFERREE_TAG = 10l;
static int staticFieldsCount = 0, instanceFieldsCount = 0;
/* jvmtiHeapRootCallback */
jvmtiIterationControl JNICALL
! heapRootCallback( jvmtiHeapRootKind root_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! void* user_data) {
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) {
return JVMTI_ITERATION_CONTINUE;
}
/* 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 == REFERREE_TAG && (referrer_tag == CLS_TAG || referrer_tag == REFERRER_TAG)) {
NSK_DISPLAY4("objectReferenceCallback: reference kind=%s, referrer_index=%d, referrer_tag=%d, referree_tag=%d\n",
TranslateObjectRefKind(reference_kind), (int)referrer_index, (long)referrer_tag, (long)*tag_ptr);
if (reference_kind == JVMTI_REFERENCE_FIELD) {
--- 49,90 ----
static const long CLS_TAG = 1l, REFERRER_TAG = 2l, REFERREE_TAG = 10l;
static int staticFieldsCount = 0, instanceFieldsCount = 0;
/* jvmtiHeapRootCallback */
jvmtiIterationControl JNICALL
! heapRootCallback(jvmtiHeapRootKind root_kind,
! jlong class_tag,
! jlong size,
! jlong* tag_ptr,
! void* user_data) {
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) {
return JVMTI_ITERATION_CONTINUE;
}
/* 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 == REFERREE_TAG && (referrer_tag == CLS_TAG || referrer_tag == REFERRER_TAG)) {
NSK_DISPLAY4("objectReferenceCallback: reference kind=%s, referrer_index=%d, referrer_tag=%d, referree_tag=%d\n",
TranslateObjectRefKind(reference_kind), (int)referrer_index, (long)referrer_tag, (long)*tag_ptr);
if (reference_kind == JVMTI_REFERENCE_FIELD) {
*** 98,119 ****
/************************/
JNIEXPORT void JNICALL
! Java_nsk_jvmti_scenarios_allocation_AP05_ap05t001_setTag( JNIEnv* jni,
! jobject obj,
! jobject target,
! jlong tag ) {
if (!NSK_JVMTI_VERIFY(jvmti->SetTag(target, tag))) {
nsk_jvmti_setFailStatus();
}
}
JNIEXPORT void JNICALL
! Java_nsk_jvmti_scenarios_allocation_AP05_ap05t001_setReferrer( JNIEnv* jni, jclass klass, jobject ref) {
if (!NSK_JNI_VERIFY(jni, (referrer = jni->NewGlobalRef(ref)) != NULL))
nsk_jvmti_setFailStatus();
}
static void JNICALL
--- 98,119 ----
/************************/
JNIEXPORT void JNICALL
! Java_nsk_jvmti_scenarios_allocation_AP05_ap05t001_setTag(JNIEnv* jni,
! jobject obj,
! jobject target,
! jlong tag) {
if (!NSK_JVMTI_VERIFY(jvmti->SetTag(target, tag))) {
nsk_jvmti_setFailStatus();
}
}
JNIEXPORT void JNICALL
! Java_nsk_jvmti_scenarios_allocation_AP05_ap05t001_setReferrer(JNIEnv* jni, jclass klass, jobject ref) {
if (!NSK_JNI_VERIFY(jni, (referrer = jni->NewGlobalRef(ref)) != NULL))
nsk_jvmti_setFailStatus();
}
static void JNICALL
< prev index next >