RFR: 8145235: Deprecate product flags that have been converted to Unified Logging

Rachel Protacio rachel.protacio at oracle.com
Fri Mar 25 14:38:18 UTC 2016


Thanks for the review!
Rachel

On 3/25/2016 10:19 AM, Coleen Phillimore wrote:
>
> Hi Rachel,
> Yes, this looks really good now.
> thanks!
> Coleen
>
> On 3/24/16 4:31 PM, Rachel Protacio wrote:
>> Hi,
>>
>> Thanks for pointing that out. I realized I could save some code by 
>> using strncat(), so I did that instead.
>> http://cr.openjdk.java.net/~rprotacio/8145235.02/
>>
>> Thanks,
>> Rachel
>>
>> On 3/24/2016 3:52 PM, Coleen Phillimore wrote:
>>>
>>> Hi Rachel,
>>>
>>> http://cr.openjdk.java.net/~rprotacio/8145235.01/src/share/vm/runtime/arguments.cpp.udiff.html 
>>>
>>> I think you need strncpy to make sure your tagset buffer doesn't 
>>> overflow.
>>>
>>> Coleen
>>>
>>> On 3/24/16 3:37 PM, Rachel Protacio wrote:
>>>> Thanks for the review! And good point. It's to the 'arguments' tag 
>>>> to follow the gc team's logging-deprecation precedent. Here's a new 
>>>> webrev updating your non-product error messages to follow this 
>>>> scheme as well: http://cr.openjdk.java.net/~rprotacio/8145235.01/
>>>>
>>>> Builds and passes logging/RemovedDevelopFlagsTest.java.
>>>>
>>>> Rachel
>>>>
>>>> On 3/24/2016 10:56 AM, Max Ockner wrote:
>>>>> Rachel,
>>>>> This looks fine. Why are we logging this message to arguments tag? 
>>>>> Should we be logging the non-product error messages  to arguments 
>>>>> as well?
>>>>> Thanks,
>>>>> Max
>>>>> On 3/22/2016 3:21 PM, Rachel Protacio wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Please review this enhancement that prints a deprecation message 
>>>>>> for the product flags we have aliased to UL options. We wanted to 
>>>>>> mimic the GC deprecation messages as seen in arguments.cpp, e.g.
>>>>>>
>>>>>>    log_warning(gc)("-XX:+PrintGCDetails is deprecated. Will use
>>>>>>    -Xlog:gc* instead.");
>>>>>>
>>>>>> I have logged our deprecation messages to a new tag 'arguments' 
>>>>>> at the 'warning' level (warning-level logging is always printed, 
>>>>>> without having to be directly specified in the command line).
>>>>>>
>>>>>> Basic sample output:
>>>>>>
>>>>>>    $ java -XX:+TraceMonitorInflation -version
>>>>>>    [0.001s][warning][arguments] -XX:+TraceMonitorInflation is
>>>>>>    deprecated. Will use -Xlog:monitorinflation=debug instead.
>>>>>>    ...
>>>>>>
>>>>>> Sample output with "-"/"off" and multiple tags:
>>>>>>
>>>>>>    $ java -XX:-TraceClassLoadingPreorder -version
>>>>>>    [0.001s][warning][arguments] -XX:-TraceClassLoadingPreorder is
>>>>>>    deprecated. Will use -Xlog:classload,preorder=off instead.
>>>>>>    ...
>>>>>>
>>>>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8145235
>>>>>> Open webrev: http://cr.openjdk.java.net/~rprotacio/8145235/
>>>>>>
>>>>>> Tested locally for robustness w.r.t. multi-tag tagsets, multiple 
>>>>>> aliased flags, etc.
>>>>>>
>>>>>> Thank you,
>>>>>> Rachel
>>>>>>
>>>>>
>>>>
>>>
>>
>



More information about the hotspot-dev mailing list