Page MenuHomeFreeBSD

libthr: Use TLS_TCB_* in _tcb_[cd]tor.
ClosedPublic

Authored by jhb on Jan 25 2022, 12:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 15, 11:21 AM
Unknown Object (File)
Mon, Mar 9, 4:44 AM
Unknown Object (File)
Feb 17 2026, 9:12 AM
Unknown Object (File)
Feb 8 2026, 10:05 AM
Unknown Object (File)
Feb 8 2026, 5:06 AM
Unknown Object (File)
Jan 31 2026, 9:27 AM
Unknown Object (File)
Jan 1 2026, 7:03 AM
Unknown Object (File)
Jan 1 2026, 7:03 AM
Subscribers

Details

Summary

This matches libc and rtld in using the alignment (TLS_TCB_ALIGN) from
machine/tls.h instead of hardcoding 16.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44077
Build 40965: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Jan 25 2022, 12:24 AM

I missed this in my earlier machine/tls.h changes. I only changed the size argument to be consistent with rtld/libc that use TLS_TCB_SIZE.

I believe this is fine, although it indeed changes the alignment.

This revision is now accepted and ready to land.Jan 25 2022, 12:37 AM
This revision was automatically updated to reflect the committed changes.