summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src
diff options
context:
space:
mode:
author Jared Duke <jdduke@google.com> 2022-12-14 12:30:14 -0800
committer Jared Duke <jdduke@google.com> 2022-12-14 12:31:14 -0800
commit3027b4d017fa5e7ea57e882344256f8771f30c9e (patch)
treefdf4609ca8b3695a426a2477437982f4cca453d1 /tests/DynamicCodeLoggerIntegrationTests/src
parent8314a3e51bd31e9c11a9b61e4bef88b2ad65803d (diff)
Refine keep rules for Java classes w/ native methods
The global keep rule for native methods allows stripping of such methods if they're unreferenced in Java. However, because system_server explicitly registers these methods from native code, stripping them in Java can cause runtime issues. As such, conservatively keep all such methods in system_server subpackages as long as the containing class is also kept or referenced. In practice, the difference is minimal, but this makes it easier to integrate optional debug pathways that have JNI interop. Bug: 246800015 Test: m services + inspect delta in services.jar Change-Id: Id1f9ab707edff9b1911cdde6bdd4bc24ebff7e49
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src')
0 files changed, 0 insertions, 0 deletions