Leverage SgenThreadInfo::mach_port.
[mono.git] / mono / utils / mach-support-amd64.c
index 506e21a642ca8652d5cdf632777950f66b619aa1..2b544e7b3e6a9071a5174c76689deb2f1a374769 100644 (file)
@@ -67,13 +67,13 @@ mono_mach_arch_get_thread_state (thread_port_t thread, thread_state_t state, mac
 }
 
 void *
-mono_mach_arch_get_tls_value_from_thread (thread_port_t thread, guint32 key)
+mono_mach_arch_get_tls_value_from_thread (pthread_t thread, guint32 key)
 {
        /* OSX stores TLS values in a hidden array inside the pthread_t structure
         * They are keyed off a giant array offset 0x60 into the pointer.  This value
         * is baked into their pthread_getspecific implementation
         */
-       intptr_t *p = (intptr_t *) pthread_from_mach_thread_np (thread);
+       intptr_t *p = (intptr_t *)thread;
        intptr_t **tsd = (intptr_t **) (p + 0x60);
 
        return (void *) tsd [key];