forked from shipilev/java-object-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
yurybubnov/java-field-layout
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Java Field Layout
---------------------------------------------------------------------
These are the very tiny tools to analyze field layout schemes in JVM.
Prepare:
$ mvn clean install
Dump the fields of some class:
$ java -jar target/field-layout.jar java.util.HashMap
java.util.HashMap
(header 12 bytes)
12 4 Set AbstractMap.keySet
16 4 Collection AbstractMap.values
20 4 int HashMap.size
24 4 int HashMap.threshold
28 4 float HashMap.loadFactor
32 4 int HashMap.modCount
36 4 int HashMap.hashSeed
40 1 boolean HashMap.useAltHashing
(gap 3 bytes)
44 4 Entry[] HashMap.table
48 4 Set HashMap.entrySet
About
Object field layout dumper
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published