This discussion is archived
0 Replies Latest reply: Mar 26, 2012 12:56 PM by 926470 RSS

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

926470 Newbie
Currently Being Moderated
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.

Nikita

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points