jmap throws exception on java 1.4.2_12
I've been trying out the backported jmap and heap dump functionality on java 1.4.2_12 but I've run into a problem. Whenever I run jmap I get output similar to this:
alpine: /> /usr/j2se/bin/jmap -histo 1369
Attaching to process ID 1369, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.4.2_12-b03
Iterating over heap. This may take a while...
Exception in thread "main" sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x00168e80
at sun.jvm.hotspot.runtime.VirtualConstructor.instantiateWrapperFor(VirtualConstructor.java:62)
at sun.jvm.hotspot.memory.GenerationFactory.newObject(GenerationFactory.java:41)
at sun.jvm.hotspot.memory.GenCollectedHeap.getGen(GenCollectedHeap.java:63)
at sun.jvm.hotspot.oops.ObjectHeap.collectLiveRegions(ObjectHeap.java:483)
at sun.jvm.hotspot.oops.ObjectHeap.iterate(ObjectHeap.java:223)
at sun.jvm.hotspot.tools.ObjectHistogram.run(ObjectHistogram.java:25)
at sun.jvm.hotspot.tools.JMap.run(JMap.java:85)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JMap.main(JMap.java:126)
Am I doing something subtly wrong?

