duplicate class signatures by GetLoadedClasses
(Unknown problem with this posting, all my paragraphs are no more visible after preview - using IE6).
Hi,
using a heap analyser (jvmti based) on our application results in detecting multiple classes having exactly (really exacty - nothing about inner classes or stuff) the same fully qualified name (package and class name). One thing is special as a maximum of two classes have the same name.
Those two classes having the same name do not appear directly after another. Two examples here: One class name appears first at position 310 and second at 3279. Another class name appears first at 4372 and second at 7916.
The algorithm used (around the iteration over all classes) is only a slightly enhanced version of the part of source of your heap viewer demo. Wether the heap viewer gives the same results could not be tested yet but I am sure as there is no important difference in the (interesting part of) source code.
On later memory consumption analysis those two classes do not always (only sometimes) have the same count of instances or consume the same amount of memory.
How could this be?
Using:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
-- Robert

