1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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()
répondu il y a 6 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- Réponse acceptéedemandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois