test/hotspot/jtreg/vmTestbase/nsk/jvmti/IterateOverReachableObjects/iterreachobj003/iterreachobj003.cpp
equal
deleted
inserted
replaced
42 /* ============================================================================= */ |
42 /* ============================================================================= */ |
43 |
43 |
44 |
44 |
45 /* jvmtiHeapRootCallback */ |
45 /* jvmtiHeapRootCallback */ |
46 jvmtiIterationControl JNICALL |
46 jvmtiIterationControl JNICALL |
47 heapRootCallback( jvmtiHeapRootKind root_kind, |
47 heapRootCallback(jvmtiHeapRootKind root_kind, |
48 jlong class_tag, |
48 jlong class_tag, |
49 jlong size, |
49 jlong size, |
50 jlong* tag_ptr, |
50 jlong* tag_ptr, |
51 void* user_data) { |
51 void* user_data) { |
52 |
52 |
53 jrawMonitorID monitor_ptr = NULL; |
53 jrawMonitorID monitor_ptr = NULL; |
54 |
54 |
55 *tag_ptr = (jlong)++objCounter; |
55 *tag_ptr = (jlong)++objCounter; |
56 |
56 |
102 return JVMTI_ITERATION_CONTINUE; |
102 return JVMTI_ITERATION_CONTINUE; |
103 } |
103 } |
104 |
104 |
105 /* jvmtiStackReferenceCallback */ |
105 /* jvmtiStackReferenceCallback */ |
106 jvmtiIterationControl JNICALL |
106 jvmtiIterationControl JNICALL |
107 stackReferenceCallback( jvmtiHeapRootKind root_kind, |
107 stackReferenceCallback(jvmtiHeapRootKind root_kind, |
108 jlong class_tag, |
108 jlong class_tag, |
109 jlong size, |
109 jlong size, |
110 jlong* tag_ptr, |
110 jlong* tag_ptr, |
111 jlong thread_tag, |
111 jlong thread_tag, |
112 jint depth, |
112 jint depth, |
113 jmethodID method, |
113 jmethodID method, |
114 jint slot, |
114 jint slot, |
115 void* user_data) { |
115 void* user_data) { |
116 |
116 |
117 jrawMonitorID monitor_ptr = NULL; |
117 jrawMonitorID monitor_ptr = NULL; |
118 |
118 |
119 *tag_ptr = (jlong)++objCounter; |
119 *tag_ptr = (jlong)++objCounter; |
120 |
120 |
167 } |
167 } |
168 |
168 |
169 |
169 |
170 /* jvmtiObjectReferenceCallback */ |
170 /* jvmtiObjectReferenceCallback */ |
171 jvmtiIterationControl JNICALL |
171 jvmtiIterationControl JNICALL |
172 objectReferenceCallback( jvmtiObjectReferenceKind reference_kind, |
172 objectReferenceCallback(jvmtiObjectReferenceKind reference_kind, |
173 jlong class_tag, |
173 jlong class_tag, |
174 jlong size, |
174 jlong size, |
175 jlong* tag_ptr, |
175 jlong* tag_ptr, |
176 jlong referrer_tag, |
176 jlong referrer_tag, |
177 jint referrer_index, |
177 jint referrer_index, |
178 void* user_data) { |
178 void* user_data) { |
179 |
179 |
180 jrawMonitorID monitor_ptr = NULL; |
180 jrawMonitorID monitor_ptr = NULL; |
181 |
181 |
182 *tag_ptr = (jlong)++objCounter; |
182 *tag_ptr = (jlong)++objCounter; |
183 |
183 |