Agent and sizing

Alan Bateman Alan.Bateman at
Sun Oct 15 08:19:48 UTC 2017

On 15/10/2017 05:13, Henri Tremblay wrote:
> :
> Remi, thanks for your answer. According to it, it seems impossible to open
> the JDK apart from using JVM parameters. Even an agent can't. Am I right?
Agents specified on the command line with `-javaagent` or loaded by 
tools into a target VM via the attach mechanism can use Instrumentation 
redefineModule to open any package in any module to other modules. Every 
effort was made to provide agents (both JVM TI and j.l.instrument based) 
with the APIs needed to work with, and instrument, modules that have 
chosen to encapsulate their internals.


More information about the jdk9-dev mailing list