mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
(scm_i_get_new_heap_segment): Limit size of new
segment to scm_max_segment_size.
This commit is contained in:
parent
98c712c4c3
commit
c17b358f48
1 changed files with 2 additions and 0 deletions
|
@ -472,6 +472,8 @@ scm_i_get_new_heap_segment (scm_t_cell_type_statistics *freelist, policy_on_erro
|
|||
freelist->collected = LONG_MAX;
|
||||
}
|
||||
|
||||
if (len > scm_max_segment_size)
|
||||
len = scm_max_segment_size;
|
||||
if (len < SCM_MIN_HEAP_SEG_SIZE)
|
||||
len = SCM_MIN_HEAP_SEG_SIZE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue