Bug 14171 – Mark non-allocating GC functions as @nogc
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-12T03:00:25Z
Last change time
2018-05-11T01:46:23Z
Assigned to
No Owner
Creator
weaselcat
Comments
Comment #0 by r9shackleford — 2015-02-12T03:00:25Z
Many functions in the GC don't actually allocate, but are useful for building tools that help facilitate working around the GC - i.e, AddRange is vital for manually managed memory that holds references to GC allocated memory. I don't think there's a reason these shouldn't be @nogc but I could easily be wrong.
Comment #1 by r9shackleford — 2015-04-10T03:04:12Z