Add logic to object array typecheck to handle arrays of unmanaged pointers (#14733)
[mono-project.git] / mono / utils / mono-threads-netbsd.c
blobfd8fb8f10d4d429fc72de8bcd1d05bcaeff95091
1 /**
2 * \file
3 */
5 #include <config.h>
7 #if defined(__NetBSD__)
9 #include <mono/utils/mono-threads.h>
10 #include <pthread.h>
12 void
13 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
15 pthread_attr_t attr;
17 *staddr = NULL;
18 *stsize = (size_t)-1;
20 pthread_attr_init (&attr);
21 pthread_attr_get_np (pthread_self (), &attr);
23 pthread_attr_getstack (&attr, (void**)staddr, stsize);
24 pthread_attr_destroy (&attr);
27 #endif