51 /*
52 * Auxiliary functions
53 */
54
55 void nsk_jvmti_aod_deallocate(jvmtiEnv *jvmti, unsigned char* mem);
56
57 /*
58 * Get class name of the given class and copy it to the given buffer,
59 * it attempt to get class name fails buffer contains zero-length string for safety.
60 */
61 int nsk_jvmti_aod_getClassName(jvmtiEnv *jvmti, jclass klass, char classNameBuffer[]);
62
63 /*
64 * Get name of the given thread and copy it to the given buffer,
65 * it attempt to get thread name fails buffer contains zero-length string for safety.
66 */
67 int nsk_jvmti_aod_getThreadName(jvmtiEnv * jvmti, jthread thread, char threadNameBuffer[]);
68
69 // events enabling/disabling
70
71 #define nsk_jvmti_aod_enableEvent(X,Y) NSK_JVMTI_VERIFY( NSK_CPP_STUB4(SetEventNotificationMode, X, JVMTI_ENABLE, Y, NULL))
72 #define nsk_jvmti_aod_disableEvent(X,Y) NSK_JVMTI_VERIFY( NSK_CPP_STUB4(SetEventNotificationMode, X, JVMTI_DISABLE, Y, NULL))
73
74 int nsk_jvmti_aod_enableEvents(jvmtiEnv* jvmti, jvmtiEvent events[], int eventsNumber);
75 int nsk_jvmti_aod_disableEvents(jvmtiEnv* jvmti, jvmtiEvent events[], int eventsNumber);
76
77 // java threads creation
78
79 jthread nsk_jvmti_aod_createThread(JNIEnv *jni);
80
81 jthread nsk_jvmti_aod_createThreadWithName(JNIEnv *jni, const char* threadName);
82
83 // class redefinition
84
85 int nsk_jvmti_aod_redefineClass(Options* options, jvmtiEnv* jvmti, jclass classToRedefine, const char* fileName);
86
87 // capabilities
88
89 void printCapabilities(jvmtiCapabilities caps);
90
91 }
92
|
51 /*
52 * Auxiliary functions
53 */
54
55 void nsk_jvmti_aod_deallocate(jvmtiEnv *jvmti, unsigned char* mem);
56
57 /*
58 * Get class name of the given class and copy it to the given buffer,
59 * it attempt to get class name fails buffer contains zero-length string for safety.
60 */
61 int nsk_jvmti_aod_getClassName(jvmtiEnv *jvmti, jclass klass, char classNameBuffer[]);
62
63 /*
64 * Get name of the given thread and copy it to the given buffer,
65 * it attempt to get thread name fails buffer contains zero-length string for safety.
66 */
67 int nsk_jvmti_aod_getThreadName(jvmtiEnv * jvmti, jthread thread, char threadNameBuffer[]);
68
69 // events enabling/disabling
70
71 #define nsk_jvmti_aod_enableEvent(X,Y) NSK_JVMTI_VERIFY(X->SetEventNotificationMode(JVMTI_ENABLE, Y, NULL))
72 #define nsk_jvmti_aod_disableEvent(X,Y) NSK_JVMTI_VERIFY(X->SetEventNotificationMode(JVMTI_DISABLE, Y, NULL))
73
74 int nsk_jvmti_aod_enableEvents(jvmtiEnv* jvmti, jvmtiEvent events[], int eventsNumber);
75 int nsk_jvmti_aod_disableEvents(jvmtiEnv* jvmti, jvmtiEvent events[], int eventsNumber);
76
77 // java threads creation
78
79 jthread nsk_jvmti_aod_createThread(JNIEnv *jni);
80
81 jthread nsk_jvmti_aod_createThreadWithName(JNIEnv *jni, const char* threadName);
82
83 // class redefinition
84
85 int nsk_jvmti_aod_redefineClass(Options* options, jvmtiEnv* jvmti, jclass classToRedefine, const char* fileName);
86
87 // capabilities
88
89 void printCapabilities(jvmtiCapabilities caps);
90
91 }
92
|