diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-01-25 19:38:34 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-01-25 19:38:34 +0000 |
| commit | 8de1a8131e42f96f8dcfbca9073896d249ff7d2c (patch) | |
| tree | 232409e2e29b8fea83189392c4a8a1ca6c82df15 /lib/libthr/thread | |
| parent | 42e51b158a945ffc216fc9c73f1f0cf6f47e3795 (diff) | |
Diffstat (limited to 'lib/libthr/thread')
| -rw-r--r-- | lib/libthr/thread/thr_ctrdtr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_ctrdtr.c b/lib/libthr/thread/thr_ctrdtr.c index 9d4301ef719f..9ce068072524 100644 --- a/lib/libthr/thread/thr_ctrdtr.c +++ b/lib/libthr/thread/thr_ctrdtr.c @@ -42,7 +42,7 @@ _tcb_ctor(struct pthread *thread, int initial) if (initial) tcb = _tcb_get(); else - tcb = _rtld_allocate_tls(NULL, sizeof(struct tcb), 16); + tcb = _rtld_allocate_tls(NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); if (tcb) tcb->tcb_thread = thread; return (tcb); @@ -52,5 +52,5 @@ void _tcb_dtor(struct tcb *tcb) { - _rtld_free_tls(tcb, sizeof(struct tcb), 16); + _rtld_free_tls(tcb, TLS_TCB_SIZE, TLS_TCB_ALIGN); } |
