@@ -699,12 +699,12 @@ methodClass(jmethodID method, jclass *pclazz)
699
699
jvmtiError error ;
700
700
701
701
* pclazz = NULL ;
702
- error = FUNC_PTR (gdata -> jvmti ,GetMethodDeclaringClass )
702
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,GetMethodDeclaringClass )
703
703
(gdata -> jvmti , method , pclazz );
704
704
return error ;
705
705
}
706
706
707
- /* Returns a local ref to the declaring class for a method, or NULL . */
707
+ /* Returns the start and end locations of the specified method. */
708
708
jvmtiError
709
709
methodLocation (jmethodID method , jlocation * ploc1 , jlocation * ploc2 )
710
710
{
@@ -727,7 +727,7 @@ methodSignature(jmethodID method,
727
727
char * signature = NULL ;
728
728
char * generic_signature = NULL ;
729
729
730
- error = FUNC_PTR (gdata -> jvmti ,GetMethodName )
730
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,GetMethodName )
731
731
(gdata -> jvmti , method , & name , & signature , & generic_signature );
732
732
733
733
if ( pname != NULL ) {
@@ -1009,7 +1009,7 @@ debugMonitorEnter(jrawMonitorID monitor)
1009
1009
{
1010
1010
jvmtiError error ;
1011
1011
while (JNI_TRUE ) {
1012
- error = FUNC_PTR (gdata -> jvmti ,RawMonitorEnter )
1012
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,RawMonitorEnter )
1013
1013
(gdata -> jvmti , monitor );
1014
1014
error = ignore_vm_death (error );
1015
1015
if (error == JVMTI_ERROR_INTERRUPT ) {
@@ -1028,7 +1028,7 @@ debugMonitorExit(jrawMonitorID monitor)
1028
1028
{
1029
1029
jvmtiError error ;
1030
1030
1031
- error = FUNC_PTR (gdata -> jvmti ,RawMonitorExit )
1031
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,RawMonitorExit )
1032
1032
(gdata -> jvmti , monitor );
1033
1033
error = ignore_vm_death (error );
1034
1034
if (error != JVMTI_ERROR_NONE ) {
@@ -1040,7 +1040,7 @@ void
1040
1040
debugMonitorWait (jrawMonitorID monitor )
1041
1041
{
1042
1042
jvmtiError error ;
1043
- error = FUNC_PTR (gdata -> jvmti ,RawMonitorWait )
1043
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,RawMonitorWait )
1044
1044
(gdata -> jvmti , monitor , ((jlong )(-1 )));
1045
1045
1046
1046
/*
@@ -1085,7 +1085,7 @@ void
1085
1085
debugMonitorTimedWait (jrawMonitorID monitor , jlong millis )
1086
1086
{
1087
1087
jvmtiError error ;
1088
- error = FUNC_PTR (gdata -> jvmti ,RawMonitorWait )
1088
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,RawMonitorWait )
1089
1089
(gdata -> jvmti , monitor , millis );
1090
1090
if (error == JVMTI_ERROR_INTERRUPT ) {
1091
1091
/* See comment above */
@@ -1103,7 +1103,7 @@ debugMonitorNotify(jrawMonitorID monitor)
1103
1103
{
1104
1104
jvmtiError error ;
1105
1105
1106
- error = FUNC_PTR (gdata -> jvmti ,RawMonitorNotify )
1106
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,RawMonitorNotify )
1107
1107
(gdata -> jvmti , monitor );
1108
1108
error = ignore_vm_death (error );
1109
1109
if (error != JVMTI_ERROR_NONE ) {
@@ -1116,7 +1116,7 @@ debugMonitorNotifyAll(jrawMonitorID monitor)
1116
1116
{
1117
1117
jvmtiError error ;
1118
1118
1119
- error = FUNC_PTR (gdata -> jvmti ,RawMonitorNotifyAll )
1119
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,RawMonitorNotifyAll )
1120
1120
(gdata -> jvmti , monitor );
1121
1121
error = ignore_vm_death (error );
1122
1122
if (error != JVMTI_ERROR_NONE ) {
@@ -1130,7 +1130,7 @@ debugMonitorCreate(char *name)
1130
1130
jrawMonitorID monitor ;
1131
1131
jvmtiError error ;
1132
1132
1133
- error = FUNC_PTR (gdata -> jvmti ,CreateRawMonitor )
1133
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,CreateRawMonitor )
1134
1134
(gdata -> jvmti , name , & monitor );
1135
1135
if (error != JVMTI_ERROR_NONE ) {
1136
1136
EXIT_ERROR (error , "on creation of a raw monitor" );
@@ -1143,7 +1143,7 @@ debugMonitorDestroy(jrawMonitorID monitor)
1143
1143
{
1144
1144
jvmtiError error ;
1145
1145
1146
- error = FUNC_PTR (gdata -> jvmti ,DestroyRawMonitor )
1146
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,DestroyRawMonitor )
1147
1147
(gdata -> jvmti , monitor );
1148
1148
error = ignore_vm_death (error );
1149
1149
if (error != JVMTI_ERROR_NONE ) {
@@ -1202,7 +1202,7 @@ classSignature(jclass clazz, char **psignature, char **pgeneric_signature)
1202
1202
* pgeneric_signature can be NULL, and GetClassSignature
1203
1203
* accepts NULL.
1204
1204
*/
1205
- error = FUNC_PTR (gdata -> jvmti ,GetClassSignature )
1205
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,GetClassSignature )
1206
1206
(gdata -> jvmti , clazz , & signature , pgeneric_signature );
1207
1207
1208
1208
if ( psignature != NULL ) {
@@ -1774,7 +1774,7 @@ jvmtiAllocate(jint numBytes)
1774
1774
if ( numBytes == 0 ) {
1775
1775
return NULL ;
1776
1776
}
1777
- error = FUNC_PTR (gdata -> jvmti ,Allocate )
1777
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,Allocate )
1778
1778
(gdata -> jvmti , numBytes , (unsigned char * * )& ptr );
1779
1779
if (error != JVMTI_ERROR_NONE ) {
1780
1780
EXIT_ERROR (error , "Can't allocate jvmti memory" );
@@ -1789,7 +1789,7 @@ jvmtiDeallocate(void *ptr)
1789
1789
if ( ptr == NULL ) {
1790
1790
return ;
1791
1791
}
1792
- error = FUNC_PTR (gdata -> jvmti ,Deallocate )
1792
+ error = JVMTI_FUNC_PTR (gdata -> jvmti ,Deallocate )
1793
1793
(gdata -> jvmti , ptr );
1794
1794
if (error != JVMTI_ERROR_NONE ) {
1795
1795
EXIT_ERROR (error , "Can't deallocate jvmti memory" );
0 commit comments