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
F167328035: D50594.diff
Thu, Aug 20, 10:48 PM
Unknown Object (File)
Wed, Aug 19, 12:52 AM
Unknown Object (File)
Mon, Aug 17, 5:02 AM
Unknown Object (File)
Thu, Aug 13, 5:24 PM
Unknown Object (File)
Wed, Aug 12, 10:48 AM
Unknown Object (File)
Sat, Aug 8, 7:35 PM
Unknown Object (File)
Wed, Aug 5, 6:05 AM
Unknown Object (File)
Tue, Aug 4, 8:06 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 64525
Build 61409: arc lint + arc unit