mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +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
|
virtual void
|
||||||
initVtable(Thread* t, object c)
|
initVtable(Thread* t, object c)
|
||||||
{
|
{
|
||||||
|
PROTECT(t, c);
|
||||||
for (int i = classLength(t, c) - 1; i >= 0; --i) {
|
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));
|
(virtualThunk(static_cast<MyThread*>(t), i));
|
||||||
|
classVtable(t, c, i) = thunk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user