Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56cc9276 authored by Milo Sredkov's avatar Milo Sredkov
Browse files

Reuse transaction-name cache across instances of the same interface.

Currently every binder object stores its own mapping of transaction
codes to names.

This is OK for services but may be wasteful for things like callback
classes for which we can have many instances.

Also change the default getMaxTransactionId to be -1, as 0 is the
value for an interface with one method. There may be up to 50
interfaces in system_server for which we incorrectly assume that
they are user defined and allocate 1024 entries (wasting hundreds of
KB).

Bug: 330738126
Test: AidlTest
Flag: android.os.binder_cache_transaction_trace_names
Change-Id: I2b960c2a9f0f325e6d99bb0d15999997dbea81e2
parent 80ce1c97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment