RFR: JDK-8155936: Boolean value should be set 1/0 or true/false via VM.set_flag jcmd

Coleen Phillimore coleen.phillimore at oracle.com
Thu Jun 2 18:17:23 UTC 2016


I think this is a good fix, if it needs another reviewer.
Coleen

On 5/3/16 8:32 PM, Yasumasa Suenaga wrote:
> Hi Gerard,
>
>> Reviewed and I will sponsor it.
>
> Thanks!
>
>> Just one question: there is no existing JDK issue covering this yet, 
>> is there? Can you file one please if none exists yet?
>
> I do not change in jdk repos.
> My change affects jinfo, however jtreg test for jinfo passed.
>
> I ran jtreg with two directories:
>
>   - hotspot/test/serviceability/dcmd/vm
>   - jdk/test/sun/tools/jinfo
>
> They work fine.
> (JInfoRunningProcessFlagTest is failed. But it is listed in ProblemList.)
>
>
> Thanks,
>
> Yasumasa
>
>
> On 2016/05/04 3:18, Gerard Ziemski wrote:
>> hi Yasumasa,
>>
>> Thank you for the fix, I like it - the very first time I tried using 
>> jcmd to set a boolean value I tried using “true”, so this will make 
>> jcmd easier to use.
>>
>> Reviewed and I will sponsor it.
>>
>> Just one question: there is no existing JDK issue covering this yet, 
>> is there? Can you file one please if none exists yet?
>>
>>
>>
>> cheers
>>
>>> On May 3, 2016, at 9:22 AM, Yasumasa Suenaga <yasuenag at gmail.com> 
>>> wrote:
>>>
>>> Hi all,
>>>
>>> This review request relates to [1].
>>>
>>> We can change a part of -XX option via VM.set_flag jcmd.
>>> This jcmd requires 1 or 0 as boolean value.
>>> However, we can set 0 or not (NOT 1).
>>>
>>> In jinfo, we can set boolean value with 1/0 or +/-.
>>> So I think it is useful if VM.set_flag accept boolean value in 
>>> true/false.
>>>
>>> I uploaded a webrev for this issue.
>>> Could you review it?
>>>
>>>   http://cr.openjdk.java.net/~ysuenaga/JDK-8155936/webrev.00/
>>>
>>> I cannot access JPRT.
>>> So I need a sponsor.
>>>
>>>
>>> Thanks,
>>>
>>> Yasumasa
>>>
>>>
>>> [1] 
>>> http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2016-April/019192.html
>>



More information about the hotspot-runtime-dev mailing list