]> gitweb.factorcode.org Git - factor.git/commit
VM: big refactoring removing the gc_workhorse
authorBjörn Lindqvist <bjourne@gmail.com>
Thu, 22 Sep 2016 10:35:38 +0000 (12:35 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Thu, 22 Sep 2016 11:12:59 +0000 (13:12 +0200)
commitc02d9135797b1f4c3f4b4fda5c6826e2cb17ff4f
tree14ba62bc49810799e74a38e6372e82603c506136
parenta0df88f20bdca726d804227bccad9addd1c48bfd
VM: big refactoring removing the gc_workhorse

Each collector were a slot_visitor containing a gc_workhorse containing
a policy class. This commit removes the gc_workhorse and the policies
and instead "inlines" the common code in the collector bodies. So there
is more code duplication, but the control flow doesn't "jump around" so
much so it is easier to understand. It also makes the nursery gc faster
because its collection code can be optimized better without the
workhorse/policy system.
GNUmakefile
vm/aging_collector.cpp
vm/collector.hpp [deleted file]
vm/full_collector.cpp
vm/gc.hpp
vm/master.hpp
vm/nursery_collector.cpp
vm/to_tenured_collector.cpp
vm/to_tenured_collector.hpp