JOL v0.6
Aleksey Shipilev
shade at redhat.com
Wed Sep 21 09:17:11 UTC 2016
Hi,
JOL 0.6 is released and available at Maven Central (thanks to Evgeny
Mandrikov, as usual). Notable changes:
*) HotSpotLayouter now closely resembles the actual Hotspot field
layouter. Among other things, it now handles FieldAllocationStyle,
@Contended, and other things real JDK supports. This allows to model the
instance sizes more accurately. This was made possible with the
contribution from Timur Gibadullin:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901019
*) New CLI tools: "heapdumpstats", which provides the heap dump
statistics without needed to load the heap dump into memory in full;
"shapes", which prints the class shapes (e.g. field types and orders)
from the JAR/heapdumps.
http://hg.openjdk.java.net/code-tools/jol/rev/5f7a8eb55932
http://hg.openjdk.java.net/code-tools/jol/rev/30c3fbadf049
As usual, CLI tools are easily available in uberjar:
http://central.maven.org/maven2/org/openjdk/jol/jol-cli/0.6/jol-cli-0.6-full.jar
*) "internals" and other CLI commands with supplied classpath was
failing to introspect the classes down the road:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901795
*) HS Serviceability Agent support now works with the latest JDK 9 EA,
which removed sa-jdi.jar:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901796
*) @Contended support is revamped to work (almost) fine with recent JDK
9 EA changes:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901783
https://bugs.openjdk.java.net/browse/CODETOOLS-7901800
Enjoy!
-Aleksey
More information about the jol-dev
mailing list