Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F104062899
D34023.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
D34023.diff
View Options
diff --git a/lib/libthr/thread/thr_ctrdtr.c b/lib/libthr/thread/thr_ctrdtr.c
--- a/lib/libthr/thread/thr_ctrdtr.c
+++ b/lib/libthr/thread/thr_ctrdtr.c
@@ -42,7 +42,7 @@
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 @@
_tcb_dtor(struct tcb *tcb)
{
- _rtld_free_tls(tcb, sizeof(struct tcb), 16);
+ _rtld_free_tls(tcb, TLS_TCB_SIZE, TLS_TCB_ALIGN);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 4, 1:08 AM (3 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14994149
Default Alt Text
D34023.diff (545 B)
Attached To
Mode
D34023: libthr: Use TLS_TCB_* in _tcb_[cd]tor.
Attached
Detach File
Event Timeline
Log In to Comment