mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update heap_pages_himem after freeing pages
This commit is contained in:
parent
be2efb118f
commit
b6d599d76e
Notes:
git
2020-09-20 23:14:11 +09:00
1 changed files with 6 additions and 0 deletions
6
gc.c
6
gc.c
|
@ -1769,6 +1769,12 @@ heap_pages_free_unused_pages(rb_objspace_t *objspace)
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct heap_page *hipage = heap_pages_sorted[heap_allocated_pages - 1];
|
||||||
|
RVALUE *himem = hipage->start + hipage->total_slots;
|
||||||
|
GC_ASSERT(himem <= heap_pages_himem);
|
||||||
|
heap_pages_himem = himem;
|
||||||
|
|
||||||
GC_ASSERT(j == heap_allocated_pages);
|
GC_ASSERT(j == heap_allocated_pages);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue