Page MenuHomeFreeBSD

thread0: Stop calling thread0 "swapper"
ClosedPublic

Authored by jhb on Dec 2 2025, 10:44 PM.
Tags
None
Referenced Files
F160289272: D54039.id167552.diff
Mon, Jun 22, 11:32 PM
Unknown Object (File)
Sat, Jun 20, 11:13 AM
Unknown Object (File)
Sat, Jun 20, 7:44 AM
Unknown Object (File)
Mon, Jun 15, 1:07 AM
Unknown Object (File)
May 20 2026, 9:17 AM
Unknown Object (File)
May 6 2026, 6:55 PM
Unknown Object (File)
May 6 2026, 8:48 AM
Unknown Object (File)
May 5 2026, 10:47 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 69003
Build 65886: arc lint + arc unit

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.