summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Main.java
diff options
context:
space:
mode:
authorLokesh Gidra <lokeshgidra@google.com>2021-02-24 11:29:26 -0800
committerTreehugger Robot <treehugger-gerrit@google.com>2021-02-25 02:19:19 +0000
commit3a8d7c2de4392ff4c40858803447efe14c3c9fa8 (patch)
treea6a13854431cc59646f3b94e5e3df420a83e6547 /test/ProfileTestMultiDex/Main.java
parentae7c8da2dcb775b58ee9285cb7c3433a8be66ebe (diff)
Return null for PhantomReference.referent in Field_get()
To be consistent with the behavior of PhantomReference's get(), we should always return null. Otherwise it's possible that an object that's only reachable via a PhantomReference becomes strongly reachable, violating the defining property of PhantomReferences. Bug: 174433134 Test: art/test/testrunner/testrunner.py --host Change-Id: Ic0c5ba1826c69cd7e8c0d2b35dc3fc6ac5b93c0e
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions