JOL 0.2

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri Nov 7 14:35:35 UTC 2014


Hi,

JOL 0.2 is released and available at Maven Central (thanks to Evgeny
Mandrikov, as always!). This is a maintenance release, and it includes a
few functional and performance fixes accumulated since 0.1, namely:

 * JRockit-specific compressed references detection code was not working
properly in all cases:
   http://hg.openjdk.java.net/code-tools/jol/rev/4aa90b3ecb20

 * JDK 9 had protected some system fields from setAccessible(true)
calls, which throws unexpected exceptions. Luckily, we can also do a
more robust way to introspect the class contents:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901068
  http://hg.openjdk.java.net/code-tools/jol/rev/286e7f914795

 * jol-estimates.jar output was garbled, due to refactoring overlook:
  http://hg.openjdk.java.net/code-tools/jol/rev/74fcfa26ecc4

 * When object alignment information is not available, JOL tries to
guess it with a simple experiment. 0.1 code was using System.gc()
aggressively, which does not play out well when JOL is embedded as a
library. 0.2 code does a simpler experiment:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901085
  http://hg.openjdk.java.net/code-tools/jol/rev/c58aecad901f

Enjoy!

Thanks,
-Aleksey.



More information about the jol-dev mailing list