Better HN
topnewbestaskshowjobs
Log inSign up

xmlparser

8 karma · joined Apr 12, 2024 (2y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

> Thankfully the brk heap isn't intrusive enough to climb up into the pages I allocated :)

That seems about right[1], but the MAP_FIXED_NOREPLACE flag has been a thing since Linux 4.17. What about using that?

[1]: https://godbolt.org/z/698dPcvf6

comment 2y ago · link · parent

Haha, that's like committing blasphemy to achieve a holy goal. I wonder what Terry or God would say about this.

comment 2y ago · link · parent

Oh wow, nice! Just a question, how do you manage memory for the OS? I thought operating systems needed whole control of the MMU.