From 13aaa14a41036dc32f97944d26819383e5b1fcd7 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 9 Jan 2008 18:51:58 -0700 Subject: [PATCH] use code allocator to allocate indirect caller --- src/compile.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compile.cpp b/src/compile.cpp index 79a948d469..2b98a738a5 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -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 - (t->m->system->allocate(p->indirectCallerSize)); + (p->codeAllocator.allocate(p->indirectCallerSize)); c->writeTo(p->indirectCaller); if (Verbose) {