vm/callstack.hpp \
vm/slot_visitor.hpp \
vm/collector.hpp \
- vm/nursery_collector.hpp \
- vm/aging_collector.hpp \
vm/to_tenured_collector.hpp \
vm/full_collector.hpp \
vm/arrays.hpp \
namespace factor {
+struct aging_policy {
+ factor_vm* parent;
+ aging_space* aging;
+ tenured_space* tenured;
+
+ explicit aging_policy(factor_vm* parent)
+ : parent(parent),
+ aging(parent->data->aging),
+ tenured(parent->data->tenured) {}
+
+ bool should_copy_p(object* untagged) {
+ return !(aging->contains_p(untagged) || tenured->contains_p(untagged));
+ }
+
+ void promoted_object(object* obj) {}
+
+ void visited_object(object* obj) {}
+};
+
void factor_vm::collect_aging() {
/* Promote objects referenced from tenured space to tenured space, copy
everything else to the aging semi-space, and reset the nursery pointer. */
+++ /dev/null
-namespace factor {
-
-struct aging_policy {
- factor_vm* parent;
- aging_space* aging;
- tenured_space* tenured;
-
- explicit aging_policy(factor_vm* parent)
- : parent(parent),
- aging(parent->data->aging),
- tenured(parent->data->tenured) {}
-
- bool should_copy_p(object* untagged) {
- return !(aging->contains_p(untagged) || tenured->contains_p(untagged));
- }
-
- void promoted_object(object* obj) {}
-
- void visited_object(object* obj) {}
-};
-
-}
#include "callstack.hpp"
#include "slot_visitor.hpp"
#include "collector.hpp"
-#include "nursery_collector.hpp"
-#include "aging_collector.hpp"
#include "to_tenured_collector.hpp"
#include "full_collector.hpp"
#include "arrays.hpp"
namespace factor {
+struct nursery_policy {
+ factor_vm* parent;
+
+ explicit nursery_policy(factor_vm* parent) : parent(parent) {}
+
+ bool should_copy_p(object* obj) {
+ return parent->data->nursery->contains_p(obj);
+ }
+
+ void promoted_object(object* obj) {}
+
+ void visited_object(object* obj) {}
+};
+
void factor_vm::collect_nursery() {
/* Copy live objects from the nursery (as determined by the root set and
marked cards in aging and tenured) to aging space. */
+++ /dev/null
-namespace factor {
-
-struct nursery_policy {
- factor_vm* parent;
-
- explicit nursery_policy(factor_vm* parent) : parent(parent) {}
-
- bool should_copy_p(object* obj) {
- return parent->data->nursery->contains_p(obj);
- }
-
- void promoted_object(object* obj) {}
-
- void visited_object(object* obj) {}
-};
-
-}