| commit | 250e0d89cc3f5d2fc03ed23961c774c02f825ffd | [log] [tgz] |
|---|---|---|
| author | Jesse Wilson <jessewilson@google.com> | Wed Jul 20 10:15:23 2011 -0700 |
| committer | Jesse Wilson <jessewilson@google.com> | Wed Jul 20 12:48:07 2011 -0700 |
| tree | 3752c1a440977e9222975b9d675334a5d52b5e9d | |
| parent | b1f55cb6f95928be969a8fe5c7447e13f14d0a68 [diff] |
Use nanoTime rather than currentTimeMillis in ReferenceQueue.remove() Some other side effects of this change: - we no longer make a time lookup when we don't need to - we time out after 'n' milliseconds, not 'n+1' milliseconds - we duplicate code from Thread.join(). I opened http://b/5053948 to dedup this. Bug: http://b/5050245 Change-Id: I20375119cfa06be559b6aa5c209375b3d3a541f9