fix process=interpret build

This commit is contained in:
Joel Dice 2008-06-04 16:17:06 -06:00
parent 2aadbaac38
commit ec791a90de

View File

@ -2855,7 +2855,7 @@ class MyProcessor: public Processor {
virtual vm::Thread* virtual vm::Thread*
makeThread(Machine* m, object javaThread, vm::Thread* parent) makeThread(Machine* m, object javaThread, vm::Thread* parent)
{ {
Thread* t = new (m->heap->allocate(sizeof(Thread), false)) Thread* t = new (m->heap->allocate(sizeof(Thread)))
Thread(m, javaThread, parent); Thread(m, javaThread, parent);
t->init(); t->init();
return t; return t;
@ -3051,17 +3051,17 @@ class MyProcessor: public Processor {
} }
} }
virtual object getStackTrace(Thread*, Thread*) { virtual object getStackTrace(vm::Thread*, vm::Thread*) {
// not implemented // not implemented
return 0; return 0;
} }
virtual void dispose(vm::Thread* t) { virtual void dispose(vm::Thread* t) {
t->m->heap->free(t, sizeof(Thread), false); t->m->heap->free(t, sizeof(Thread));
} }
virtual void dispose() { virtual void dispose() {
allocator->free(this, sizeof(*this), false); allocator->free(this, sizeof(*this));
} }
System* s; System* s;
@ -3075,7 +3075,7 @@ namespace vm {
Processor* Processor*
makeProcessor(System* system, Allocator* allocator) makeProcessor(System* system, Allocator* allocator)
{ {
return new (allocator->allocate(sizeof(MyProcessor), false)) return new (allocator->allocate(sizeof(MyProcessor)))
MyProcessor(system, allocator); MyProcessor(system, allocator);
} }