commit | d4a50f03d401ac034c1ad2de174f49bb00afc5f6 | [log] [tgz] |
---|---|---|
author | Hans Boehm <hboehm@google.com> | Tue Nov 10 14:59:59 2020 -0800 |
committer | Hans Boehm <hboehm@google.com> | Mon Nov 16 13:57:22 2020 -0800 |
tree | 4a418cb301eb2a0c7e187168649e3528faa980b6 | |
parent | d9ce5d7a5928f3183bc260ebc94fe89ad793ec45 [diff] |
Add Reference.refersTo() ... and use it in ThreadLocal to avoid danger of blocking on GC if it's at a stage at which we cannot safely convert WeakReferences to strong ones. Add test for refersTo. Test: atest ReferenceTest Bug: 172573708 Change-Id: I85b9701433f990684e7bd64afb8fc80abbf9b3ba