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
F160486763: D50594.id156259.diff
Thu, Jun 25, 12:37 AM
Unknown Object (File)
Sat, Jun 13, 11:26 AM
Unknown Object (File)
Wed, Jun 3, 7:37 AM
Unknown Object (File)
Tue, May 26, 10:34 AM
Unknown Object (File)
Apr 28 2026, 7:24 PM
Unknown Object (File)
Apr 21 2026, 1:06 PM
Unknown Object (File)
Apr 20 2026, 4:56 AM
Unknown Object (File)
Apr 17 2026, 3:03 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