I am using Eclipse Memory Analyser to view an HPROF file. It displays different number of fields for different instances of the same class:
It seems the fields missing may never have been assigned to, but what was the value in those missing fields? Are they the "zero" value or the value from the field initialiser?
Edit:
JVM is Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
Edit 2:
It seems the missing fields are not "zero" (as confirmed through debugging), but probably never assigned to.
The below OQL query shows that Eclipse Memory Analyser actually knows about the real values in those fields, but just chose to not display them...