* gc.c: PAGE_BITMAP_PLANES (the number of bitmap) is 4, not 3.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2016-01-08 20:46:36 +00:00
Родитель 17c7bdc04b
Коммит 1f1f3112dc
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Sat Jan 9 05:45:40 2016 Koichi Sasada <ko1@atdot.net>
* gc.c: PAGE_BITMAP_PLANES (the number of bitmap) is 4, not 3.
Sat Jan 9 05:42:57 2016 Koichi Sasada <ko1@atdot.net>
* gc.c: rename constant names HEAP_* to PAGE_*.

2
gc.c
Просмотреть файл

@ -638,7 +638,7 @@ enum {
PAGE_OBJ_LIMIT = (unsigned int)((PAGE_SIZE - sizeof(struct heap_page_header))/sizeof(struct RVALUE)),
PAGE_BITMAP_LIMIT = CEILDIV(CEILDIV(PAGE_SIZE, sizeof(struct RVALUE)), BITS_BITLENGTH),
PAGE_BITMAP_SIZE = (BITS_SIZE * PAGE_BITMAP_LIMIT),
PAGE_BITMAP_PLANES = USE_RGENGC ? 3 : 1 /* RGENGC: mark bits, rememberset bits and oldgen bits */
PAGE_BITMAP_PLANES = USE_RGENGC ? 4 : 1 /* RGENGC: mark, unprotected, uncollectible, marking */
};
struct heap_page {