summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jing Ji <jji@google.com> 2024-03-15 02:52:19 -0700
committer Jing Ji <jji@google.com> 2024-03-28 12:06:34 -0700
commit0b60166cbfd474fe21c4e9e301f1c6a3ba2b9049 (patch)
treec01502916be350a24aa63750aa312321fd8ee788 /libs/androidfw/StringPool.cpp
parent021ecf5cb2ffd3f7732172872a38b813331d71f3 (diff)
Log the excessive incoming binder proxies into statsd
This CL introduces a new "warning" callback on excessive binder proxies, where if the total count of binder proxies from certain UID goes above the threshold, the callback will be triggered. This is very similar to the existing binder proxy high watermark callback. We're logging this warning event into statsd, where it may trigger perfetto dump, before it reaches to the high watermark and gets killed because of that. This callback signal could also be used as a hint to the GC in the future, which could effectively release the references to remote binder stubs. Flag: ACONFIG log_excessive_binder_proxies DEVELOPMENT Bug: 298263955 Test: atest FrameworksCoreTests:android.os.BinderProxyCountingTest Change-Id: I3c959a7dd62ee57415c22a8034d774fe49a8f64f
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions