1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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()
beantwortet vor 6 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor einem Jahr