implement primitive heap dump facility for memory profiling, accessible via Runtime.dumpHeap

The proper way to do this is to implement a subset of JVMTI, but this
will do the job for now.
This commit is contained in:
Joel Dice
2008-10-21 17:38:20 -06:00
parent f38a55cbb2
commit 6a5116e7a7
8 changed files with 434 additions and 31 deletions

View File

@ -111,8 +111,8 @@ public class Method<T> extends AccessibleObject implements Member {
}
}
public static native Object invoke(Method method, Object instance,
Object ... arguments)
private static native Object invoke(Method method, Object instance,
Object ... arguments)
throws InvocationTargetException, IllegalAccessException;
public Class getReturnType() {