diff options
Diffstat (limited to 'runtime/gc/collector/semi_space.h')
-rw-r--r-- | runtime/gc/collector/semi_space.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/gc/collector/semi_space.h b/runtime/gc/collector/semi_space.h index f067cb2..3442751 100644 --- a/runtime/gc/collector/semi_space.h +++ b/runtime/gc/collector/semi_space.h @@ -217,6 +217,11 @@ class SemiSpace : public GarbageCollector { // bump pointer space to the non-moving space. uint64_t bytes_promoted_; + // Used for the generational mode. Keeps track of how many bytes of + // objects have been copied so far from the bump pointer space to + // the non-moving space, since the last whole heap collection. + uint64_t bytes_promoted_since_last_whole_heap_collection_; + // Used for the generational mode. When true, collect the whole // heap. When false, collect only the bump pointer spaces. bool whole_heap_collection_; @@ -228,6 +233,9 @@ class SemiSpace : public GarbageCollector { // How many bytes we avoided dirtying. size_t saved_bytes_; + // The name of the collector. + std::string collector_name_; + // Used for the generational mode. The default interval of the whole // heap collection. If N, the whole heap collection occurs every N // collections. |