RFR(S) : 8038756 : new WB API :: get/setVMFlag

Lev Priima lev.priima at oracle.com
Tue Apr 1 14:25:22 UTC 2014


Staffan,

sun.tools.* API(as well as all tools.jar) does not present in compact1 
profile.

Lev

On 04/01/2014 05:02 PM, Staffan Larsen wrote:
> 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.
>
> Typical use:
>
> HotSpotVirtualMachine vm = (HotSpotVirtualMachine) VirtualMachine.attach(pid);
> vm.setFlag(“MyFlag”, “MyValue”);
>
> There is also an API in sun.management.HotSpotDiagnostic for setting / getting as well as querying for options in JVM.
>
> Thanks,
> /Staffan
>
>
> 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-compiler-dev mailing list