gc.c: remove redundant freelist assignment

* gc.c (heap_get_freeobj): remove redundant assignment. heap->freelist
  is set after the while() loop already.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tmm1 2013-12-18 18:11:54 +00:00
Родитель 49dcd2fee4
Коммит 3f8deb966c
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Thu Dec 19 03:10:30 2013 Aman Gupta <ruby@tmm1.net>
* gc.c (heap_get_freeobj): remove redundant assignment. heap->freelist
is set after the while() loop already.
Thu Dec 19 01:54:30 2013 Koichi Sasada <ko1@atdot.net>
* test/runner.rb: fix commit miss on r44278.

2
gc.c
Просмотреть файл

@ -1240,7 +1240,7 @@ heap_get_freeobj(rb_objspace_t *objspace, rb_heap_t *heap)
while (UNLIKELY(p == NULL)) {
struct heap_page *page = heap_get_freepage(objspace, heap);
heap->using_page = page;
p = heap->freelist = page->freelist;
p = page->freelist;
page->freelist = NULL;
}
heap->freelist = p->as.free.next;