mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (HEAP_BITMAP_LIMIT): HEAP_BITMAP_LIMIT is computed on the
basis of HEAP_SIZE because it must covers a whole heap block. [ruby-trunk - Bug #6006] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
623169a5c6
commit
8b4b4032f7
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Feb 15 10:59:52 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||
|
||||
* gc.c (HEAP_BITMAP_LIMIT): HEAP_BITMAP_LIMIT is computed on the
|
||||
basis of HEAP_SIZE because it must covers a whole heap block.
|
||||
[ruby-trunk - Bug #6006]
|
||||
|
||||
Wed Feb 15 09:27:45 2012 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* ext/zlib/zlib.c (Init_zlib): Added Zlib::FIXED and Zlib::RLE
|
||||
|
|
2
gc.c
2
gc.c
|
@ -547,7 +547,7 @@ rb_objspace_free(rb_objspace_t *objspace)
|
|||
#define CEILDIV(i, mod) (((i) + (mod) - 1)/(mod))
|
||||
|
||||
#define HEAP_OBJ_LIMIT (unsigned int)((HEAP_SIZE - sizeof(struct heaps_header))/sizeof(struct RVALUE))
|
||||
#define HEAP_BITMAP_LIMIT CEILDIV(HEAP_OBJ_LIMIT, sizeof(uintptr_t)*8)
|
||||
#define HEAP_BITMAP_LIMIT CEILDIV(CEILDIV(HEAP_SIZE, sizeof(struct RVALUE)), sizeof(uintptr_t)*8)
|
||||
|
||||
#define GET_HEAP_HEADER(x) (HEAP_HEADER(((uintptr_t)x) & ~(HEAP_ALIGN_MASK)))
|
||||
#define GET_HEAP_SLOT(x) (GET_HEAP_HEADER(x)->base)
|
||||
|
|
Loading…
Reference in a new issue