зеркало из https://github.com/github/ruby.git
* gc.c: get rid of implicit narrowing conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8d4baab08f
Коммит
e3b0732050
|
@ -1,3 +1,7 @@
|
|||
Sun Jan 8 00:46:34 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* gc.c: get rid of implicit narrowing conversion.
|
||||
|
||||
Sun Jan 8 00:10:10 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* configure.in: check posix_memalign(3) and menalign(3).
|
||||
|
|
2
gc.c
2
gc.c
|
@ -537,7 +537,7 @@ rb_objspace_free(rb_objspace_t *objspace)
|
|||
#define HEAP_ALIGN_MASK 0x3fff
|
||||
#define HEAP_SIZE HEAP_ALIGN
|
||||
|
||||
#define HEAP_OBJ_LIMIT (HEAP_SIZE/(unsigned int)sizeof(struct RVALUE) - (sizeof(struct heaps_slot)/(unsigned int)sizeof(struct RVALUE)+1))
|
||||
#define HEAP_OBJ_LIMIT (HEAP_SIZE/(unsigned int)sizeof(struct RVALUE) - (unsigned int)(sizeof(struct heaps_slot)/sizeof(struct RVALUE)+1))
|
||||
#define HEAP_BITMAP_LIMIT (HEAP_OBJ_LIMIT/sizeof(uintptr_t)+1)
|
||||
|
||||
#define GET_HEAP_SLOT(x) (HEAP_SLOT(((uintptr_t)x) & ~(HEAP_ALIGN_MASK)))
|
||||
|
|
Загрузка…
Ссылка в новой задаче