[Issue 13691] New: Add @nogc at the top of system modules like core.sys.linux.sys.mman
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Nov 5 18:53:18 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13691
Issue ID: 13691
Summary: Add @nogc at the top of system modules like
core.sys.linux.sys.mman
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: Marco.Leise at gmx.de
Trivial, but I thought I'd write it down as a formal bug report to be able to
refer to it in my code comments. There is Phobos @nogc code, which usually
means "no heap activity" and there is @nogc code that just manages memory
differently and often relies on system functions, which are not yet marked
@nogc.
E.g. I found that with madvise(..., MADV_DONTNEED) you can quickly reset memory
blocks to all-zeros and free up the resident memory pages again.
--
More information about the Digitalmars-d-bugs
mailing list