[jboss-cvs] jboss-profiler/jvmti-lib/native-src ...
Clebert Suconic
csuconic at jboss.com
Mon Jun 25 21:52:22 EDT 2007
User: csuconic
Date: 07/06/25 21:52:21
Modified: jvmti-lib/native-src jbossAgentJNI.cpp
Log:
Fixing crash on jvmti/linux
Revision Changes Path
1.18 +0 -4 jboss-profiler/jvmti-lib/native-src/jbossAgentJNI.cpp
(In the diff below, changes in quantity of whitespace are not shown.)
Index: jbossAgentJNI.cpp
===================================================================
RCS file: /cvsroot/jboss/jboss-profiler/jvmti-lib/native-src/jbossAgentJNI.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- jbossAgentJNI.cpp 27 Jul 2006 16:00:31 -0000 1.17
+++ jbossAgentJNI.cpp 26 Jun 2007 01:52:21 -0000 1.18
@@ -916,14 +916,12 @@
}
if (lMethodId==0 || lMethodId==-1) return NULL;
char * name;
- char * signature;
jmethodID id = (jmethodID)lMethodId;
jvmti->GetMethodName(id,&name,NULL,NULL);
jstring retString = env->NewStringUTF(name);
jvmti->Deallocate((unsigned char *) name);
- jvmti->Deallocate((unsigned char *) signature);
return retString;
}
@@ -937,14 +935,12 @@
}
if (lMethodId==0 || lMethodId==-1) return NULL;
char * name;
- char * signature;
jmethodID id = (jmethodID)lMethodId;
jvmti->GetMethodName(id,NULL,&name,NULL);
jstring retString = env->NewStringUTF(name);
jvmti->Deallocate((unsigned char *) name);
- jvmti->Deallocate((unsigned char *) signature);
return retString;
}
More information about the jboss-cvs-commits
mailing list