[Issue 19847] New: no GC memory above 4GB reported with --DRT-gcopt=profile:1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 6 07:23:42 UTC 2019


          Issue ID: 19847
           Summary: no GC memory above 4GB reported with
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

Build this program with -m64:

void main()
        ubyte[][] data;
        foreach(i; 0..10_000)
                data ~= new ubyte[1 << 20];

and run it with "--DRT:gcopt=profile:1". It reports

        Number of collections:  14
        Total GC prep time:  6 milliseconds
        Total mark time:  12 milliseconds
        Total sweep time:  29 milliseconds
        Max Pause Time:  11 milliseconds
        Grand total GC time:  47 milliseconds
GC summary: 4076 MB,   14 GC   47 ms, Pauses   18 ms <   11 ms

even though it allocates and retsins 10 GB of memory.


More information about the Digitalmars-d-bugs mailing list