зеркало из https://github.com/github/ruby.git
* gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b872ad5861
Коммит
e3e5d634f0
|
@ -1,3 +1,7 @@
|
|||
Fri Oct 30 19:08:48 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.
|
||||
|
||||
Fri Oct 30 18:09:51 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (newobj_slowpath): reduce 1 parameter to use only registers
|
||||
|
|
2
gc.c
2
gc.c
|
@ -1641,7 +1641,7 @@ heap_get_freeobj_from_next_freepage(rb_objspace_t *objspace, rb_heap_t *heap)
|
|||
struct heap_page *page;
|
||||
RVALUE *p;
|
||||
|
||||
while (UNLIKELY(heap->free_pages == NULL)) {
|
||||
while (heap->free_pages == NULL) {
|
||||
heap_prepare(objspace, heap);
|
||||
}
|
||||
page = heap->free_pages;
|
||||
|
|
Загрузка…
Ссылка в новой задаче