diff options
author | 2023-11-07 00:40:53 +0000 | |
---|---|---|
committer | 2024-08-27 21:31:59 +0000 | |
commit | 484e4f228da221d6561594ad1698c7a2e9389c32 (patch) | |
tree | 1bfc50351a009fa040572667f8cb5770d516185c /compiler/optimizing/optimizing_unit_test.h | |
parent | aface21c61bc1c0e5ec7635450aebb2082bcad9e (diff) |
Fix ahat accounting for cleaned native registrations
If a registered native allocation is cleaned explicitly via the
thunk provided by RegisterNativeAllocation, but that thunk hasn't
yet been GC'ed, the associated heap dump currently reports that the
native allocation is live. Fix this by checking the cleaner's liveliness
in the associated linked list.
This aligns with Perfetto behavior for native registration allocation
tracking.
Test: atest ahat-tests --host
Bug: 235395968
Change-Id: Icc275de7b45e176846cf5932895692ae6eb8e166
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
0 files changed, 0 insertions, 0 deletions