mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 01:30:27 +02:00
Add a statistic for tracking how many cells are marked conservatively.
This allows an informed choice for deciding how many segments to create. After startup, ~2% of the cells are scanned conservatively.
This commit is contained in:
parent
82ae1b8eb3
commit
40945e5e9f
5 changed files with 12 additions and 3 deletions
|
@ -115,12 +115,14 @@ scm_i_insert_segment (scm_t_heap_segment *seg)
|
|||
|
||||
I think this function is too long to be inlined. --hwn
|
||||
*/
|
||||
|
||||
int
|
||||
scm_i_find_heap_segment_containing_object (SCM obj)
|
||||
{
|
||||
if (!CELL_P (obj))
|
||||
return -1;
|
||||
|
||||
scm_i_find_heap_calls ++;
|
||||
if ((scm_t_cell *) obj < lowest_cell || (scm_t_cell *) obj >= highest_cell)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue