www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23321] New: Add ability to set NO_SCAN flag for GCAllocator


          Issue ID: 23321
           Summary: Add ability to set NO_SCAN flag for GCAllocator
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: schveiguy gmail.com

std.experimental.allocator.GCAllocator always allocates blocks that are marked
as containing pointers for GC scanning. However, for something like an i/o
buffer, there is no reason to scan this for pointers, since it's raw data from
a file.

There isn't an API that allows this, so I'm wondering if the GCAllocator should
accept a template flag that dictates the NO_SCAN requirement?

I did this for my own purposes for iopipe:

Sep 02 2022