mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix handling of virtual calls to native methods
This commit is contained in:
parent
141862470b
commit
89221bfcfa
@ -4641,7 +4641,9 @@ compileVirtualMethod2(MyThread* t, object class_, unsigned index)
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
void* address = reinterpret_cast<void*>(methodAddress(t, target));
|
void* address = reinterpret_cast<void*>(methodAddress(t, target));
|
||||||
if (address != reinterpret_cast<void*>(nativeThunk(t))) {
|
if (methodFlags(t, target) & ACC_NATIVE) {
|
||||||
|
t->trace->nativeMethod = target;
|
||||||
|
} else {
|
||||||
classVtable(t, class_, methodOffset(t, target)) = address;
|
classVtable(t, class_, methodOffset(t, target)) = address;
|
||||||
}
|
}
|
||||||
return address;
|
return address;
|
||||||
|
Loading…
Reference in New Issue
Block a user