Page MenuHomeFreeBSD

thread0: Stop calling thread0 "swapper"
ClosedPublic

Authored by jhb on Dec 2 2025, 10:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 14, 11:46 AM
Unknown Object (File)
Sat, Jan 10, 4:26 PM
Unknown Object (File)
Sat, Jan 10, 3:42 PM
Unknown Object (File)
Sat, Jan 10, 5:16 AM
Unknown Object (File)
Thu, Jan 8, 1:06 AM
Unknown Object (File)
Tue, Jan 6, 10:29 AM
Unknown Object (File)
Wed, Dec 31, 2:09 AM
Unknown Object (File)
Sat, Dec 27, 7:43 AM
Subscribers

Details

Summary

Just leave it as "kernel". While here, replace "parked" with "-" (the
typical wait channel for idle threads).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Dec 2 2025, 10:44 PM

This is fine, but there are quite a few more references to "swapper" in the src tree. mac_cred_create_swapper() in particular is a misnomer now. I should have cleaned those up when I removed stack swapping.

This revision is now accepted and ready to land.Dec 2 2025, 11:07 PM
kib added inline comments.
sys/kern/init_main.c
534

Might be call it kernel0

sys/kern/init_main.c
534

I only used the same name as that is what threads get by default (and tools like ps, etc. treat identical names as a special case). I think if we want to give it a distinct name, we should maybe use something like "boot" or "startup" that reflects its role.

This revision was automatically updated to reflect the committed changes.