]> gitweb.factorcode.org Git - factor.git/commitdiff
VM: workhorse attribute not used
authorBjörn Lindqvist <bjourne@gmail.com>
Sun, 13 Sep 2015 01:31:37 +0000 (03:31 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Tue, 22 Sep 2015 06:51:03 +0000 (08:51 +0200)
vm/collector.hpp

index 9cae8326bf541a3a94b6101145ff4c0577be5d5f..41d700d01f144d329e8c9f689e5d3e0a474efcc1 100644 (file)
@@ -64,7 +64,6 @@ template <typename TargetGeneration, typename Policy> struct collector {
   data_heap* data;
   code_heap* code;
   TargetGeneration* target;
-  gc_workhorse<TargetGeneration, Policy> workhorse;
   slot_visitor<gc_workhorse<TargetGeneration, Policy> > visitor;
   cell cards_scanned;
   cell decks_scanned;
@@ -76,8 +75,7 @@ template <typename TargetGeneration, typename Policy> struct collector {
         data(parent->data),
         code(parent->code),
         target(target),
-        workhorse(parent, target, policy),
-        visitor(parent, workhorse),
+        visitor(parent, gc_workhorse<TargetGeneration, Policy>(parent, target, policy)),
         cards_scanned(0),
         decks_scanned(0),
         code_blocks_scanned(0) {