summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 00:23:02 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 00:23:02 +0000
commit5d663cc2d31fd1e8a0beeadd60be8b6558a826b6 (patch)
tree459d4a40e1424d66e8db976ec064b8e0f9a744c9
parentead9dbae1f1eeb48ae332300a98a8a7fde4e982b (diff)
* gc.c (gc_page_sweep, rgengc_rememberset_mark): Refactoring.
Get bitmaps directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--gc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a55e49..d9b4ce9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Nov 9 09:22:29 2013 Masaya Tarui <tarui@ruby-lang.org>
+
+ * gc.c (gc_page_sweep, rgengc_rememberset_mark): Refactoring.
+ Get bitmaps directly.
+
Sat Nov 9 09:16:36 2013 Masaya Tarui <tarui@ruby-lang.org>
* gc.c (RVALUE_PROMOTE_INFANT): Refactoring. Remove duplicated nonsense
diff --git a/gc.c b/gc.c
index 4fb2a3c..55e2153 100644
--- a/gc.c
+++ b/gc.c
@@ -2662,7 +2662,7 @@ gc_page_sweep(rb_objspace_t *objspace, rb_heap_t *heap, struct heap_page *sweep_
p = sweep_page->start; pend = p + sweep_page->limit;
offset = p - NUM_IN_PAGE(p);
- bits = GET_HEAP_MARK_BITS(p);
+ bits = sweep_page->mark_bits;
/* create guard : fill 1 out-of-range */
bits[BITMAP_INDEX(p)] |= BITMAP_BIT(p)-1;
@@ -4478,7 +4478,7 @@ rgengc_rememberset_mark(rb_objspace_t *objspace, rb_heap_t *heap)
while (page) {
p = page->start;
- bits = GET_HEAP_REMEMBERSET_BITS(p);
+ bits = page->rememberset_bits;
offset = p - NUM_IN_PAGE(p);
for (j=0; j < HEAP_BITMAP_LIMIT; j++) {