Fix: pre-fault TLS in ust-malloc instrumentation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Jul 2016 20:54:55 +0000 (16:54 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Jul 2016 20:58:13 +0000 (16:58 -0400)
commit85b2b5d8444ec887b5e7f01691c0a90b9a092342
tree9b14dc88cc0082d4ed5d539835b387028ac394b7
parentcadf81991b140ca1c04977589927bfdee86cfbe1
Fix: pre-fault TLS in ust-malloc instrumentation

Faulting the TLS variable when accessed for the first time can trigger
deadlocks with internal libc lock when using the liblttng-ust-malloc
wrapper. Fix this by pre-faulting it in a library constructor, similarly
to the approach taken for all other TLS variables in lttng-ust.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-libc-wrapper/lttng-ust-malloc.c
This page took 0.03661 seconds and 4 git commands to generate.