This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/JVMTI] GetMethodDeclaringClass


Andrew Haley wrote:

AFAICS we just need to make sure that all methods for interpreted
classes are pushed with _Jv_PushClass.  Then to get your class,

class = ncodeMap->get (jmethodID->ncode);

I thought about doing that at one time, but I was (too?) worried about an invalid jmethodID wreaking havoc. Is there a way to guard against something like this or otherwise validate the jmethodID before dereferencing it?


Perhaps I'm being too paranoid?

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]