* 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:
parent
63cb03494e
commit
2c012e01db
@ -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>
|
Mon May 12 12:24:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (sym_to_i): really removed. [ruby-dev:34641]
|
* string.c (sym_to_i): really removed. [ruby-dev:34641]
|
||||||
|
2
gc.c
2
gc.c
@ -551,7 +551,7 @@ assign_heap_slot(rb_objspace_t *objspace)
|
|||||||
membase = p;
|
membase = p;
|
||||||
if ((VALUE)p % sizeof(RVALUE) != 0) {
|
if ((VALUE)p % sizeof(RVALUE) != 0) {
|
||||||
p = (RVALUE*)((VALUE)p + sizeof(RVALUE) - ((VALUE)p % sizeof(RVALUE)));
|
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--;
|
objs--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user