diff --git a/src/vm.cpp b/src/vm.cpp index 076d2177a5..c06b48afd5 100644 --- a/src/vm.cpp +++ b/src/vm.cpp @@ -231,7 +231,7 @@ visitRoots(Thread* t, Heap::Visitor* v) v->visit(&(t->exception)); for (unsigned i = 0; i < t->sp; ++i) { - v->visit(t->stack + t->sp); + v->visit(t->stack + i); } for (Thread::Protector* p = t->protector; p; p = p->next) {