one problem using TI to catch Objects allocation

To get objects allocated during runtime, I use byecode intrumentation, JNI function interception, and VM Object Allocation Event of TI. But I still miss the allocation of many objects, about 15% of all the heap objects. why this happens, the objects missed are "[I", "[B","[C","[S","Ljava/lang/Class",and "Ljava/lang/Object".

My experiments are based on Eclipse3.2 and JDK1.5.9 to catch objects allocation During the process from the beginning of Eclispe's start to the successfully running of a simple app developed in Eclipse.

please help to give some hints. Thanks in advance.

Message was edited by:

danvor

[642 byte] By [danvora] at [2007-11-26 22:01:34]
# 1

You don't say much about your instrumentation. Do you insert code after each newarray byte code so that you get a notification when arrays are allocated. If not, that should help explain the array objects you are missing. There were a few issues with the VMObjAlloc event in 5.0 that were resolved in 6.0. You might want to check that release to see if you get more events for objects that can't be detected with instrumentation.

alan.batemana at 2007-7-10 10:41:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...