April 19, 2019 Static data and GC | ||||
---|---|---|---|---|
| ||||
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? |
April 19, 2019 Re: Static data and GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to unDEFER | 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.
|
Copyright © 1999-2021 by the D Language Foundation