What do those strange class names in a java heap dump mean?

前端 未结 4 1225
故里飘歌
故里飘歌 2020-12-13 04:08

I\'m trying to track down a memory leak in a java process, using jmap and jhat. Every time I do this I see those weird notation for specific object types, like [S

4条回答
  •  我在风中等你
    2020-12-13 04:46

    it is an array of objects as specified by JVM Specifications for internal representation of class names:

    • a single [ means an array of
    • L followed by a fully qualified class name (e.g. java/lang/Object) is the class name terminated by semicolon ;

    so [Ljava.lang.object; means Object[]

提交回复
热议问题