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
F153275883: D50594.id.diff
Mon, Apr 20, 4:56 AM
Unknown Object (File)
Fri, Apr 17, 3:03 AM
Unknown Object (File)
Wed, Apr 15, 8:46 PM
Unknown Object (File)
Mon, Apr 13, 10:10 PM
Unknown Object (File)
Tue, Mar 31, 4:40 PM
Unknown Object (File)
Mon, Mar 30, 8:28 PM
Unknown Object (File)
Mon, Mar 30, 7:43 AM
Unknown Object (File)
Sun, Mar 29, 9:46 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 Not Applicable
Unit
Tests Not Applicable