mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
move fixed object (mark and sweep) support into heap.cpp and refine algorithms for determining when and how much to GC
This commit is contained in:
@ -2955,11 +2955,11 @@ class MyProcessor: public Processor {
|
||||
{
|
||||
Thread* t = static_cast<Thread*>(vmt);
|
||||
|
||||
visit(t, v, &(t->code));
|
||||
v->visit(&(t->code));
|
||||
|
||||
for (unsigned i = 0; i < t->sp; ++i) {
|
||||
if (t->stack[i * 2] == ObjectTag) {
|
||||
visit(t, v, reinterpret_cast<object*>(t->stack + (i * 2) + 1));
|
||||
v->visit(reinterpret_cast<object*>(t->stack + (i * 2) + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user