1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
I'm still curious about HotSpot but a different way to solve this is something like this using openjdk jol project:
import org.openjdk.jol
val l = List(1,2,3)
// Convert Any into AnyRef: https://stackoverflow.com/a/23892913
val jo = l.asInstanceOf[AnyRef]
val gl = jol.info.GraphLayout.parseInstance(jo)
gl.totalSize()
回答済み 6年前