mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
fix GC safety bug in MyProcessor::initVtable
This commit is contained in:
parent
db09adc0d4
commit
4a87d82d8e
@ -5953,9 +5953,11 @@ class MyProcessor: public Processor {
|
||||
virtual void
|
||||
initVtable(Thread* t, object c)
|
||||
{
|
||||
PROTECT(t, c);
|
||||
for (int i = classLength(t, c) - 1; i >= 0; --i) {
|
||||
classVtable(t, c, i) = reinterpret_cast<void*>
|
||||
void* thunk = reinterpret_cast<void*>
|
||||
(virtualThunk(static_cast<MyThread*>(t), i));
|
||||
classVtable(t, c, i) = thunk;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user