summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfleuria <[email protected]>2013-07-24 16:22:38 +0800
committerfleuria <[email protected]>2013-07-24 16:22:38 +0800
commit0c0efc16b08237d30fc30f03033140d2844d6e74 (patch)
treea061d49acb9aebc1dc28f08ae3d1f63a041c352f
parentc852626ea73136aa148f9bca92ecc3babfd28017 (diff)
downloadmruby-0c0efc16b08237d30fc30f03033140d2844d6e74.tar.gz
mruby-0c0efc16b08237d30fc30f03033140d2844d6e74.zip
gc: replace comment "a round of GC" to "a GC cycle"
-rw-r--r--src/gc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gc.c b/src/gc.c
index 9a8fea791..72db02f05 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -42,18 +42,18 @@
There're two white color types in a flip-flop fassion: White-A and White-B,
which respectively represent the Current White color (the newly allocated
- objects in the current round of GC) and the Sweep Target White color (the
+ objects in the current GC cycle) and the Sweep Target White color (the
dead objects to be swept).
- A and B will be switched just at the beginning of the next round of GC. At
+ A and B will be switched just at the beginning of the next GC cycle. At
that time, all the dead objects have been swept, while the newly created
- objects in the current round of GC which finally remains White are now
+ objects in the current GC cycle which finally remains White are now
regarded as dead objects. Instead of traversing all the White-A objects and
paint them as White-B, just switch the meaning of White-A and White-B would
be much cheaper.
- As a result, the objects we sweep in the current round of GC are always
- left from the previous round of GC. This allows us to sweep objects
+ As a result, the objects we sweep in the current GC cycle are always
+ left from the previous GC cycle. This allows us to sweep objects
incrementally, without the disturbance of the newly created objects.
== Execution Timing
@@ -86,7 +86,7 @@
phase, then only sweep the newly created objects, and leave
the Old objects live.
- * Major GC - same as a full round of regular GC.
+ * Major GC - same as a full regular GC cycle.
For details, see the comments for each function.