Commit 6de58316 authored by Neil Fuller's avatar Neil Fuller
Browse files

Patch for awaitNanos() for coarse-grained clocks

If System.nanoTime() returns the same value twice in awaitNanos()
then (remaining == initialNanos) will be true but the code
will conclude that a (less likely) overflow occurred.

Bug: 24284239
(cherry-picked from commit 8fc2ac0f)
Change-Id: I3b9d573ea822e18f4c1849c8ab66071e66274a50
parent 23dedc04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment