Page MenuHomeFreeBSD

rtld-elf: Pass TCB to allocate_module_tls to avoid re-getting
ClosedPublic

Authored by jrtc27 on May 28 2025, 11:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 30, 6:17 PM
Unknown Object (File)
Fri, Jan 16, 3:45 AM
Unknown Object (File)
Thu, Jan 15, 5:54 PM
Unknown Object (File)
Jan 6 2026, 3:34 AM
Unknown Object (File)
Jan 2 2026, 9:41 PM
Unknown Object (File)
Dec 29 2025, 2:46 AM
Unknown Object (File)
Nov 16 2025, 4:24 PM
Unknown Object (File)
Nov 7 2025, 8:31 PM
Subscribers

Details

Summary

The only caller already has the current TCB to hand, so just pass it
down rather than get it again. This also makes it clear in the caller
that it depends on the (current) TCB, rather than being storage that
could be assigned to any thread (concurrency issues aside).

Diff Detail

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