diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-04 04:42:31 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-04 04:42:31 +0000 |
| commit | 6595548057f576aac620f8791d751541510584ac (patch) | |
| tree | 7c1955558a3c4b517bd8af1490b958dd82d1e04a | |
| parent | c8febec9c5c469192068112f3cb118e1c3acddb4 (diff) | |
| download | ruby-6595548057f576aac620f8791d751541510584ac.tar.gz ruby-6595548057f576aac620f8791d751541510584ac.tar.xz ruby-6595548057f576aac620f8791d751541510584ac.zip | |
* gc.c (add_heap): fix previous change. [ruby-dev:33988]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | gc.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Mar 4 13:41:46 2008 Tanaka Akira <akr@fsij.org> + + * gc.c (add_heap): fix previous change. [ruby-dev:33988] + Tue Mar 4 10:21:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * gc.c (add_heap): use binary search to find the place to insert the @@ -466,14 +466,15 @@ add_heap(void) } } + membase = p; if ((VALUE)p % sizeof(RVALUE) == 0) heap_slots += 1; else p = (RVALUE*)((VALUE)p + sizeof(RVALUE) - ((VALUE)p % sizeof(RVALUE))); if (hi < heaps_used) { - MEMMOVE(&heaps[hi+1], &heaps[hi], VALUE, heaps_used - hi); + MEMMOVE(&heaps[hi+1], &heaps[hi], struct heaps_slot, heaps_used - hi); } - heaps[hi].membase = p; + heaps[hi].membase = membase; heaps[hi].slot = p; heaps[hi].limit = heap_slots; pend = p + heap_slots; |
