commit | b0e861cb829f190f91579637f93a096fc1a680b7 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Jun 30 15:20:26 2016 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Fri Jul 08 18:28:49 2016 -0700 |
tree | 7a6aca18e9354d4447d96b1d2397f70c1d568d83 | |
parent | a548c081fe1967e89b6973aa0715a83419f93ef7 [diff] |
Fix unsafe weak reference usage in test 141 There were patterns like: WeakRef<Class> klass = ... klass.get().<method> These are unsafe since background GC could unload and null out the weak reference. We now pass the weak reference to another function. Deleted bad and unsafe test. Test: test-art-host Bug: 29889416 Change-Id: I6a8daf678262757e54e5817ec63b7c33f4b156ab