~lttng/lttng-ust/lttng-ust

Viewing all changes in revision 2409.

  • Committer: Mathieu Desnoyers
  • Author(s): Christophe Bedard
  • Date: 2020-06-30 15:08:03 UTC
  • Revision ID: git-v1:50170875992c5de7d6fcc1b3f953502391a8e82b
Fix: libc-wrapper: undef temporary token rather than value

The lttng-ust malloc wrapper defines pthread_mutex_lock/unlock
preprocessor tokens to ust_malloc_spin_lock/unlock around the definition
of a TLS variable, which uses pthread mutexes when relying on the
pthread key fallback. Undefining those tokens should be done on the
preprocessor token, rather than its value.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I2053b79c88000e272c29b25ca105b1352ecfabd7

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: