OSDN Git Service

Agent libraries need to be searched for JNI functions
authorAlex Light <allight@google.com>
Thu, 20 Apr 2017 16:15:08 +0000 (09:15 -0700)
committerAlex Light <allight@google.com>
Thu, 20 Apr 2017 22:47:01 +0000 (22:47 +0000)
commit65af20b1aaa2b23abaae3e4a21d7b6cdcb156889
tree8bf0c219ec23392afe2f04972b6abc2665c9ab80
parentaa03f6fa38da0166790f2b22b679e6568ad56f7d
Agent libraries need to be searched for JNI functions

This makes agent libraries the option of last resort for native
method implementations. This will allow one to not need to manually
link all native methods in an agent library.

Bug: 37522517
Bug: 37432636
Test: ./test.py --host -j40
Change-Id: I5ad78a15e7e2799d2a877c5d603342899e2a1bd1
17 files changed:
runtime/java_vm_ext.cc
runtime/jni_internal.cc
runtime/runtime.h
runtime/ti/agent.cc
runtime/ti/agent.h
test/986-native-method-bind/expected.txt
test/986-native-method-bind/native_bind.cc
test/986-native-method-bind/src/art/Redefinition.java [deleted file]
test/986-native-method-bind/src/art/Test986.java
test/987-agent-bind/agent_bind.cc [new file with mode: 0644]
test/987-agent-bind/expected.txt [new file with mode: 0644]
test/987-agent-bind/info.txt [new file with mode: 0644]
test/987-agent-bind/run [new file with mode: 0755]
test/987-agent-bind/src/Main.java [new file with mode: 0644]
test/987-agent-bind/src/art/Main.java [new file with mode: 0644]
test/987-agent-bind/src/art/Test987.java [new file with mode: 0644]
test/Android.bp