RFR(S) : 8038756 : new WB API :: get/setVMFlag
staffan.larsen at oracle.com
Tue Apr 1 13:02:36 UTC 2014
There is already an API for getting / setting flags in sun.tools.attach.HotSpotVirtualMachine. If at all possible, we should reuse that API instead of adding a new one.
HotSpotVirtualMachine vm = (HotSpotVirtualMachine) VirtualMachine.attach(pid);
There is also an API in sun.management.HotSpotDiagnostic for setting / getting as well as querying for options in JVM.
On 1 apr 2014, at 11:38, Igor Ignatyev <igor.ignatyev at oracle.com> wrote:
> adding hotspot-dev alias.
> On 03/31/2014 01:07 AM, Igor Ignatyev wrote:
>> Hi all,
>> Please review the patch which introduces new WhiteBox methods to get and
>> set VM flags.
>> webrev: http://cr.openjdk.java.net/~iignatyev/8038756/webrev.00/
>> jbs: https://bugs.openjdk.java.net/browse/JDK-8038756
>> testing: jprt
More information about the hotspot-dev