eddycjy / blog

煎鱼的博客,有点忙,传送门:https://eddycjy.com
3.05k stars 431 forks source link

posts/go/go1.16-3/ #127

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Go1.16 新特性:详解内存管理机制的变更,你需要了解

https://eddycjy.com/posts/go/go1.16-3/

tongjingran commented 3 years ago

煎鱼大大,MADV_FREE 和 MADV_DONTNEED 的定义是不是写反了

cabuda commented 3 years ago

MADV_FREE 和 MADV_DONTNEED 在操作系统回收这块,应该是写反了。 MADV_FREE: The kernel can thus free these pages, but the freeing could be delayed until memory pressure occurs. https://www.man7.org/linux/man-pages/man2/madvise.2.html