digitalmars.D.bugs - [Issue 13691] New: Add nogc at the top of system modules like
- via Digitalmars-d-bugs (22/22) Nov 05 2014 https://issues.dlang.org/show_bug.cgi?id=13691
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. --
Nov 05 2014