projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use initial-exec TLS model
[lttng-ust.git]
/
liblttng-ust-java-agent
/
jni
/
common
/
lttng_ust_context.c
diff --git
a/liblttng-ust-java-agent/jni/common/lttng_ust_context.c
b/liblttng-ust-java-agent/jni/common/lttng_ust_context.c
index f412cc18fcb6c1b2eb33efe4526f78425401de55..e9b6da282db3bfbc5ec075a8ea64178c6f9ef851 100644
(file)
--- a/
liblttng-ust-java-agent/jni/common/lttng_ust_context.c
+++ b/
liblttng-ust-java-agent/jni/common/lttng_ust_context.c
@@
-24,6
+24,7
@@
#include <lttng/ust-events.h>
#include <lttng/ringbuffer-config.h>
#include <lttng/ust-context-provider.h>
#include <lttng/ust-events.h>
#include <lttng/ringbuffer-config.h>
#include <lttng/ust-context-provider.h>
+#include <urcu/tls-compat.h>
#include "helper.h"
#include "lttng_ust_context.h"
#include "helper.h"
#include "lttng_ust_context.h"
@@
-56,7
+57,7
@@
struct lttng_ust_jni_ctx_entry {
} __attribute__((packed));
/* TLS passing context info from JNI to callbacks. */
} __attribute__((packed));
/* TLS passing context info from JNI to callbacks. */
-
__thread 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)
{
static const char *get_ctx_string_at_offset(int32_t offset)
{
@@
-374,7
+375,7
@@
JNIEXPORT jlong JNICALL Java_org_lttng_ust_agent_context_LttngContextApi_registe
goto error_register;
}
goto error_register;
}
- provider_ref = (jlong) provider;
+ provider_ref = (jlong)
(long)
provider;
return provider_ref;
/* Error handling. */
return provider_ref;
/* Error handling. */
This page took
0.024285 seconds
and
4
git commands to generate.