Ping!! Re: RFR: 8203357 Container Metrics

David Holmes david.holmes at oracle.com
Tue Jun 12 05:43:13 UTC 2018


On 12/06/2018 3:31 PM, mandy chung wrote:
> On 6/11/18 10:12 PM, David Holmes wrote:
>>>>>>
>>>>>> For the Java code ... methods that return arrays should return 
>>>>>> zero-length arrays when something is not available rather than null.
>>>>> All methods do return zero length arrays except I missed the 
>>>>> getPerCpuUsage.  I’ll fix that one and correct the javadoc.
>>>>
>>>> There are a few more too:
>>>>
>>>
>>> Those are covered by the function that converts the string range.
>>
>> ??? I have no idea what you mean.
> 
> 
> I think the methods returning an array calls 
> Subsystem::StringRangeToIntArray which returns an empty array.
> 
>   171     public static int[] StringRangeToIntArray(String range) {
>   172         int[] ints = new int[0];
>   173
>   174         if (range == null) return ints;

I'm commenting on the specification of the Metrics interface:

http://cr.openjdk.java.net/~bobv/8203357/webrev.01/src/java.base/share/classes/jdk/internal/platform/Metrics.java.html

not any implementation.

Cheers,
David

> 
> Mandy


More information about the serviceability-dev mailing list