Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Under pressure, it will eventually page the memory back out, but generally you never want to get your machine into a state where paging happens. Aside from that, there is no mechanism that allows the kernel to know the memory is no longer used unless you explicitly tell it, e.g. via madvise(2).

Though I can't think of a sane way to call madvise(2) involving a thread stack



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: