RFR(S): 8025942: Implement os::Bsd:available_memory
Daniel D. Daugherty
daniel.daugherty at oracle.com
Fri Oct 11 10:52:26 PDT 2013
On 10/11/13 11:20 AM, Gerard Ziemski wrote:
> OK, I will do that, but do we seriously still care about 80 character
> limit?
Yes. At least for Runtime and Serviceability code. Don't really
know about the GC and Compiler teams.
Dan
>
>
> cheers
>
> On 10/11/2013 11:46 AM, Daniel D. Daugherty wrote:
>> My e-mail client reformatted the line...
>>
>> However, there are plenty of examples of HotSpot's
>> style for breaking function calls when they are longer
>> than 80 chars...
>>
>> Dan
>>
>>
>> On 10/11/13 10:44 AM, Daniel D. Daugherty wrote:
>>> >
>>> http://cr.openjdk.java.net/~dsamersoff/sponsorship/gziemski/JDK-8025942/webrev.01/
>>>
>>>
>>> src/os/bsd/vm/os_bsd.cpp
>>> nit line 166 kern_return_t kerr =
>>> host_statistics64(mach_host_self(), HOST_VM_INFO64,
>>> (host_info64_t)&vmstat, &count);
>>>
>>> This line is longer than 80 chars. Please reformat it
>>> to something like:
>>>
>>> 166 kern_return_t kerr = host_statistics64(mach_host_self(),
>>> HOST_VM_INFO64,
>>> (host_info64_t)&vmstat, &count);
>>>
>>> Thumbs up.
>>>
>>> Dan
>>>
>>>
>>> On 10/10/13 1:14 PM, Gerard Ziemski wrote:
>>>> Please review this fix that implements os::Bsd:available_memory()
>>>>
>>>> Description:
>>>>
>>>> This is a simple change - we use a similar implementation that
>>>> Apple itself uses (see
>>>> http://opensource.apple.com/source/system_cmds/system_cmds-498.2/vm_stat.tproj/vm_stat.c)
>>>> to implement BSD (Apple platform only) implementation for finding
>>>> out available (free) memory.
>>>>
>>>>
>>>> Testing:
>>>>
>>>> Passed JPRT, vm quicklooks
>>>>
>>>>
>>>> References:
>>>>
>>>> http://cr.openjdk.java.net/~dsamersoff/sponsorship/gziemski/JDK-8025942/webrev.01/
>>>>
>>>> https://bugs.openjdk.java.net/browse/JDK-8025942
>>>>
>>>>
>>>> cheers
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>
More information about the hotspot-dev
mailing list