test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach009/attach009Agent00.cpp
equal
deleted
inserted
replaced
26 #include <jni.h> |
26 #include <jni.h> |
27 #include <jvmti.h> |
27 #include <jvmti.h> |
28 #include <aod.h> |
28 #include <aod.h> |
29 #include <jvmti_aod.h> |
29 #include <jvmti_aod.h> |
30 |
30 |
31 #ifdef __cplusplus |
|
32 extern "C" { |
31 extern "C" { |
33 #endif |
|
34 |
32 |
35 /* |
33 /* |
36 * Expected agent work scenario: |
34 * Expected agent work scenario: |
37 * - receive ClassLoad event for class FirstLoadedClass, from handler for this event |
35 * - receive ClassLoad event for class FirstLoadedClass, from handler for this event |
38 * disable ClassLoad events for all threads except thread loading FirstLoadedClass |
36 * disable ClassLoad events for all threads except thread loading FirstLoadedClass |
158 return JNI_ERR; |
156 return JNI_ERR; |
159 |
157 |
160 return JNI_OK; |
158 return JNI_OK; |
161 } |
159 } |
162 |
160 |
163 #ifdef __cplusplus |
|
164 } |
161 } |
165 #endif |
|