summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_String.cc
diff options
context:
space:
mode:
author Daniele Di Proietto <ddiproietto@google.com> 2021-10-21 19:05:40 +0100
committer Daniele Di Proietto <ddiproietto@google.com> 2021-11-05 11:31:19 +0000
commitd3f8758e8ac7b8f539ca6d9ead3dbb41b4903001 (patch)
treead6a7854e7a2226c635454434c1270c2fac63578 /runtime/native/java_lang_String.cc
parentdd576456b6f186c18953b687baaf0aa928245a51 (diff)
Treat PhantomReferences like normal object
PhantomReferences are classes like sun.misc.Cleaner (I think that's the only type). This change: * Uses Class::GetIFields() instead of Object::VisitReference() to visit references for PhantomReferences. This way, the `sun.misc.Cleaner.referent` field is included. This is useful for understanding native allocation sizes. * Avoids emitting field_ids for each PhantomReference objects. The field_ids emitted in the types are enough (they are for normal classes). Tested by building, flashing, getting a perfetto heap dump of systemui and loading into the perfetto ui at aosp/1869189 Bug: 194395971 Change-Id: Id2b5a1c80550a3d43c8b0289c198324fb327ecbc
Diffstat (limited to 'runtime/native/java_lang_String.cc')
0 files changed, 0 insertions, 0 deletions