[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NS port: How to debug excessive garbage collection?
From: |
Keith David Bershatsky |
Subject: |
Re: NS port: How to debug excessive garbage collection? |
Date: |
Mon, 15 Apr 2019 22:51:46 -0700 |
Thank you, Alex, for pinpointing my error in the call to memset.
Greatly appreciated!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> Date: [04-15-2019 22:26:05] <15 Apr 2019 23:26:05 -0600>
> From: Alex Gramiak <address@hidden>
> To: Keith David Bershatsky <address@hidden>
> Cc: address@hidden, address@hidden
> Subject: Re: NS port: How to debug excessive garbage collection?
>
> * * *
>
> The problem here is that since you changed the single struct cache to an
> array of caches, you need to also change the memset call to match it.
> Right now you are setting the pointer variable to 0/NULL. It should now
> be:
>
> memset (w->mc_elts, 0, w->mc_nelts * (sizeof *w->mc_elts));
>
> Which sets the memory block of mc_nelts cache structs pointed to
> by mc_elts to 0.