fix GC safety bug in MyProcessor::initVtable

This commit is contained in:
Joel Dice 2009-06-04 17:20:55 -06:00
parent db09adc0d4
commit 4a87d82d8e

View File

@ -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;
}
}