use code allocator to allocate indirect caller

This commit is contained in:
Joel Dice 2008-01-09 18:51:58 -07:00
parent 8e5ce11047
commit 13aaa14a41

View File

@ -4595,10 +4595,6 @@ class MyProcessor: public Processor {
s->handleSegFault(0);
if (indirectCaller) {
s->free(indirectCaller, indirectCallerSize);
}
s->free(this, sizeof(*this));
}
@ -4633,7 +4629,7 @@ processor(MyThread* t)
p->indirectCallerSize = c->codeSize();
p->indirectCaller = static_cast<uint8_t*>
(t->m->system->allocate(p->indirectCallerSize));
(p->codeAllocator.allocate(p->indirectCallerSize));
c->writeTo(p->indirectCaller);
if (Verbose) {