RFR(xs): 8150843: [windows] os::getTimesSecs() returns negative values for kernel, user times

David Holmes david.holmes at oracle.com
Mon Mar 7 00:10:26 UTC 2016


On 3/03/2016 10:01 PM, Thomas Stüfe wrote:
> Hi all,
>
> I still need a second reviewer and a sponsor for this small Windows-only
> fix.

I'm applying the trivial change rule here and have sponsored it.

Cheers,
David

>
> bug report: https://bugs.openjdk.java.net/browse/JDK-8150843
> Current webrev is:
> http://cr.openjdk.java.net/~stuefe/webrevs/8150843-windows-osGetTimesSecs/webrev.01/webrev/
>
> Thank you!
>
> ..Thomas
>
> On Mon, Feb 29, 2016 at 6:14 PM, Thomas Stüfe <thomas.stuefe at gmail.com>
> wrote:
>
>> Hi all,
>>
>> please review and sponsor this small fix.
>>
>> It fixes an error in os::getTimesSecs() for windows which causes the
>> numbers for kernel- and usertime to be off. This does not cause an error,
>> because the sole user of this function, the TraceCpuTime class, uses this
>> function to measure twice and calculate the deltas.
>>
>> I still think it is a good idea to fix this bug - with the fix, the
>> returned values are based on the process start and will be the same for all
>> platforms (the *nix platforms use times()).
>>
>> bug report: https://bugs.openjdk.java.net/browse/JDK-8150843
>> webrev:
>> http://cr.openjdk.java.net/~stuefe/webrevs/8150843-windows-osGetTimesSecs/webrev.00/webrev/
>>
>> Kind Regards, Thomas
>>


More information about the hotspot-runtime-dev mailing list