]> gitweb.factorcode.org Git - factor.git/commit
VM: clear the local roots before garbage collection in general_error()
authorBjörn Lindqvist <bjourne@gmail.com>
Sat, 21 Jun 2014 23:24:43 +0000 (01:24 +0200)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 16 Jul 2014 21:54:29 +0000 (14:54 -0700)
commit655dcee2d80ed5a40b9fe37e784d3eb8c78e03da
tree68002e47aa5ca39259daff3987442ee2402c7200
parentfdcc33acee7b35a67fbadad1c632a759a7011cc6
VM: clear the local roots before garbage collection in general_error()

If we got here from memory_protection_error(), then the stack pointer
has been fiddled with and the elements of these vectors, which address
stack-allocated objects, are bogus and needs to be resetted.
vm/cpu-x86.cpp
vm/errors.cpp