RFR  8153181: Examine sun.misc.VMSupport
mandy.chung at oracle.com
Fri Apr 1 23:32:37 UTC 2016
Would jdk.internal.vm be appropriate for this VMSupoprt class?
VMSupport::getAgentProperties simply calls JVM_InitAgentProperties. java.management could call JVM_InitAgentProperties directly.
JDWP calls it and needs to be updated.
VMSupport.getVMTemporaryDirectory() is for jdk.jvmstat to use and I suggest to move this method to jdk.internal.perf.Perf.
> On Mar 31, 2016, at 9:02 AM, Chris Hegarty <chris.hegarty at oracle.com> wrote:
> As part of JEP 260, all non-Critical APIs in sun.misc are being examined.
> sun.misc.VMSupport is a utility class supporting two functions:
> 1) the initialization of management Agent properties, and
> 2) the retrieval of the VM temporary directory used by the attach and perf data files.
> The initialization of Agent properties is used statically by the java.managment module,
> or can be provoked by a serviceability tool on a VM that has had an agent loaded in it.
> The location of VM temporary files is a low-level interface between the libraries and VM.
> For these reasons, VMSupport should remain in the base module, but be moved to an
> internal package.
More information about the core-libs-dev