if (call_chain_depth == 0) {
mono_profiler_stat_hit ((guchar *)mono_arch_ip_from_context (ctx), ctx);
} else {
- MonoJitTlsData *jit_tls = (MonoJitTlsData *)mono_native_tls_get_value (mono_jit_tls_id);
+ MonoJitTlsData *jit_tls = (MonoJitTlsData *)mono_tls_get_jit_tls ();
int current_frame_index = 1;
MonoContext mono_context;
guchar *ips [call_chain_depth + 1];
if (mono_thread_info_get_small_id () == -1)
return; //an non-attached thread got the signal
- if (!mono_domain_get () || !mono_native_tls_get_value (mono_jit_tls_id))
+ if (!mono_domain_get () || !mono_tls_get_jit_tls ())
return; //thread in the process of dettaching
InterlockedIncrement (&profiler_signals_accepted);