Static data and GC

unDEFER undefer at gmail.com
Fri Apr 19 20:20:16 UTC 2019


On Friday, 19 April 2019 at 19:22:00 UTC, unDEFER wrote:
> Hello all!
> I just have moved some big data segment to static allocated 
> field.
> So I have >64Kb static data.
> And profiler shows very big increasing number (in 3 times) of 
> Instruction Fetch on full_collect() method.
> More accurately. The problem is in gc.Gcx.mark method, number 
> of instructions of which increased in 8 times.
>
> What happened? The GC is going crazy?
> How to avoid it?

So the problem was that I not all necessary fields made static.. 
And there was really big memory allocations.


More information about the Digitalmars-d mailing list