Open Matthewacon opened 5 years ago
Just to clarify, these functions take the form of Java_package_method
, e.g.: for randomNumber
in com.example
it would be Java_com_example_randomNumber
. Also, we should really find where this behaviour is documented because I am only aware of this as an implementation detail of OpenJDK and the ART
When
registerNatives
is invoked, preform a depth-first search for the corresponding function in all libraries registered with the JVM instance. The first symbol found will be registered in place of the function pointer provided by theJNINativeMethod
struct.