1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (assign_heap_slot): fix condition for number of objects in

a heap.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-05-12 03:30:34 +00:00
parent 63cb03494e
commit 2c012e01db
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon May 12 12:27:55 2008 Tanaka Akira <akr@fsij.org>
* gc.c (assign_heap_slot): fix condition for number of objects in
a heap.
Mon May 12 12:24:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (sym_to_i): really removed. [ruby-dev:34641]

2
gc.c
View file

@ -551,7 +551,7 @@ assign_heap_slot(rb_objspace_t *objspace)
membase = p;
if ((VALUE)p % sizeof(RVALUE) != 0) {
p = (RVALUE*)((VALUE)p + sizeof(RVALUE) - ((VALUE)p % sizeof(RVALUE)));
if ((membase + HEAP_SIZE) < (p + HEAP_SIZE)) {
if ((HEAP_SIZE - HEAP_OBJ_LIMIT * sizeof(RVALUE)) < ((char*)p - (char*)membase)) {
objs--;
}
}