0 Replies Latest reply on Mar 26, 2012 7:56 PM by 926470

    Finding an object of a specific class that has already been instantiated.

      I have tried using JVMTI to get a hold of an object that has already been instantiated in a JVM. I tried to intercept object allocation using the VM object allocation callback. It never showed up as an allocated object, even though I know it was instantiated. I guess I do not understand how this callback works. I also tried, also unsuccessfully, to intercept the call to the object constructor. Never got the callback. I do get method callback when methods of this object are being called. I was hoping to get the object pointer somehow through that mechanism, but could not so far. If anybody knows how to do that, please let me know.

      Thanks in advance.