This reverts commit
364979886a80f7c993b3210af48a93f7d65f4530.
The initial-exec model seems to behave differently than global-dynamic
with respect to lazy initialization, causing locks to be taken then
first time each thread touch the TLS. This introduces deadlocks with
library constructors waiting on other threads.
This will require further investigation.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
} __attribute__((packed));
/* TLS passing context info from JNI to callbacks. */
-DEFINE_URCU_TLS_IE(struct lttng_ust_jni_tls, lttng_ust_context_info_tls);
+DECLARE_URCU_TLS_IE(struct lttng_ust_jni_tls, lttng_ust_context_info_tls);
static const char *get_ctx_string_at_offset(int32_t offset)
{