RFR 8135188: RunFinalizationTest.java Exception java.lang.Error: Test failure: Object was not finalized
Martin Buchholz
martinrb at google.com
Fri Oct 9 17:03:24 UTC 2015
On Thu, Oct 8, 2015 at 11:51 PM, Jaroslav Bachorik <
jaroslav.bachorik at oracle.com> wrote:
> On 8.10.2015 18:56, Martin Buchholz wrote:
>
>>
>> I think it would be better :
>> - never use currentTimeMillis to measure elapsed time; use nanoTime
>> instead
>>
>
> Ok. I suppose this would be because currentTimeMillis() is dependent on
> the OS time, right?
nanoTime only has one job - to measure elapsed time. currentTimeMillis
returns wall clock time, which is subject to the whims of the system
administrator or your local NTP server.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20151009/3fe66f69/attachment.html>
More information about the serviceability-dev
mailing list