blob: f7b40e7409f6dd7b367872da168b9fab4cd4e419 [file] [log] [blame]
//===------------ gc.cc - Boehm GC Garbage Collector ----------------------===//
//
// Mvm
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "MvmGC.h"
#include "mvm/Threads/Thread.h"
using namespace mvm;
void Collector::inject_my_thread(mvm::Thread* th) {
GC_init();
}
void Collector::initialise() {
GC_INIT();
}
extern "C" gc* gcmalloc(size_t sz, VirtualTable* VT) {
return (gc*)gc::operator new(sz, VT);
}