More reliable compressed-oops patch for JOL and some simple improvements [Patch Linked]

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Sep 10 06:55:53 UTC 2014


On 09/09/2014 10:30 PM, serkan özal wrote:
> Currenly, I got out these magic offsets from native codes of JDK. In
> my opinion, to be sure about them,     * Test as much as all
> published JDK binaries :) (for JDK 7, such as jdk1.7_u17, jdk1.7_u21,
> etc ...)    * Looking commit logs of these files if ltheir ayout is
> changed or not. What do you think about how we can be sure for these
> magic offsets?

This does add significant maintenance burden.

I am thinking: this is why we need to involve Serviceability Agent.
Hard-coding the offsets seems very wrong. Can we instead ask user to
supply the relevant sa-jdi.jar, and pull the offsets from there?

-Aleksey.





More information about the jol-dev mailing list