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년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전