digitalmars.D - 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?
Apr 19 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.
Apr 19 2019