diff options
author | Alex Light <allight@google.com> | 2020-06-08 09:21:12 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2020-06-09 15:36:02 +0000 |
commit | 42131731f8b0e93493e5642667e7bd133dea2254 (patch) | |
tree | c157ef622b484980c280ea36f8bde72d3f452aff /test/ProfileTestMultiDex | |
parent | 9db35462c6806529d1e885caba0ef293fa52db2e (diff) |
Preserve JNI bindings across structural redefinition
We were incorrectly clearing the JNI bindings of native methods on
classes which are structurally redefined. This can cause major issues
with code which uses JNIEnv::RegisterNatives to setup native methods.
This change copies the required information from the old to the new
method. Since the RegisterNatives method can be run asynchronously we
need to wait until we gain the final SuspendAll to actually read and
copy the registration.
Test: ./test.py --host
Bug: 158476592
Merged-In: Ie8a33234bb852a46e5275502c842553637c8a2c6
Change-Id: Ie8a33234bb852a46e5275502c842553637c8a2c6
(cherry picked from commit 16527e892b13c9e1fb34f8d2e9993e58a72ac662)
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions