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)
Sun, Oct 5, 9:02 AM
Unknown Object (File)
Thu, Oct 2, 9:52 PM
Unknown Object (File)
Mon, Sep 29, 8:29 PM
Unknown Object (File)
Thu, Sep 25, 7:48 PM
Unknown Object (File)
Tue, Sep 23, 10:40 AM
Unknown Object (File)
Fri, Sep 19, 2:16 PM
Unknown Object (File)
Sep 2 2025, 9:17 AM
Unknown Object (File)
Sep 2 2025, 9:09 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