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
F141131601: D34023.id101916.diff
Thu, Jan 1, 7:03 AM
F141131590: D34023.id101916.diff
Thu, Jan 1, 7:03 AM
F141131581: D34023.id101916.diff
Thu, Jan 1, 7:03 AM
Unknown Object (File)
Wed, Dec 10, 9:07 PM
Unknown Object (File)
Sun, Dec 7, 11:21 PM
Unknown Object (File)
Nov 24 2025, 2:24 AM
Unknown Object (File)
Nov 23 2025, 8:00 PM
Unknown Object (File)
Nov 23 2025, 11:33 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.