mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +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;
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
return address;
|
||||
|
Loading…
Reference in New Issue
Block a user