November 06, 2014 [Issue 13691] New: Add @nogc at the top of system modules like core.sys.linux.sys.mman | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: Marco.Leise@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. -- |
Copyright © 1999-2021 by the D Language Foundation