cleanup: update stale comments

This commit is contained in:
daniel committed 2026-08-15 21:18:03 +02:00
1 parent 788b662d44
commit cc90b34fdb
5 files changed
+10 -9

No files matched your search

+3 -3
View File
@@ -62,9 +62,9 @@ namespace montauk::abi {
if (proc == nullptr) return -1;
// Use a rotating ring of scratch pages below the heap instead of
// bumping heapNext on every call. This keeps repeated directory scans
// from leaking user heap space while still allowing nested callers to
// hold multiple readdir results at once.
// extending the heap high-water mark on every call. This keeps repeated
// directory scans from consuming user heap address space while still
// allowing nested callers to hold multiple readdir results at once.
uint32_t slot = proc->readdirCursor % Sched::UserReadDirSlots;
proc->readdirCursor = (slot + 1) % Sched::UserReadDirSlots;