mirror of
https://github.com/corda/corda.git
synced 2025-06-22 09:08:49 +00:00
look for a native method implementation using the fast calling convention (Avian_*) before one using the standard convention (Java_*) to avoid false positives late in the search path
This commit is contained in:
@ -203,14 +203,14 @@ namespace vm {
|
|||||||
void*
|
void*
|
||||||
resolveNativeMethod(Thread* t, object method)
|
resolveNativeMethod(Thread* t, object method)
|
||||||
{
|
{
|
||||||
void* p = ::resolveNativeMethod(t, method, "Java_", 5, -1);
|
void* p = ::resolveNativeMethod(t, method, "Avian_", 6, 3);
|
||||||
if (p) {
|
if (p) {
|
||||||
|
methodVmFlags(t, method) |= FastNative;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = ::resolveNativeMethod(t, method, "Avian_", 6, 3);
|
p = ::resolveNativeMethod(t, method, "Java_", 5, -1);
|
||||||
if (p) {
|
if (p) {
|
||||||
methodVmFlags(t, method) |= FastNative;
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user