summaryrefslogtreecommitdiff
path: root/pthread_stop_world.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2007-08-22 16:25:40 +0000
committerguest <ivmai@mail.ru>2011-07-29 15:31:20 +0400
commite8358e38fdb05cc4a5b024e4332d0dc56a717e48 (patch)
tree332599d584fc0e185b1694a08f5bce862fd1b4b9 /pthread_stop_world.c
parent60542d9205aff1777bcac455358fc2852c14f8c8 (diff)
downloadbdwgc-e8358e38fdb05cc4a5b024e4332d0dc56a717e48.tar.gz
2007-08-22 Martin Baulig <martin@ximian.com>
* pthread_stop_world.c (GC_mono_debugger_add_all_threads): Removed. (GC_mono_debugger_get_stack_ptr): New public function. svn path=/trunk/mono/; revision=84647
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r--pthread_stop_world.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
index 39e8d5d8..1ed16132 100644
--- a/pthread_stop_world.c
+++ b/pthread_stop_world.c
@@ -561,19 +561,13 @@ void GC_stop_init()
GCThreadFunctions *gc_thread_vtable = NULL;
-void
-GC_mono_debugger_add_all_threads (void)
+void *
+GC_mono_debugger_get_stack_ptr (void)
{
- GC_thread p;
- int i;
+ GC_thread me;
- if (gc_thread_vtable && gc_thread_vtable->thread_created) {
- for (i = 0; i < THREAD_TABLE_SZ; i++) {
- for (p = GC_threads[i]; p != 0; p = p -> next) {
- gc_thread_vtable->thread_created (p->id, &p->stop_info.stack_ptr);
- }
- }
- }
+ me = GC_lookup_thread (pthread_self ());
+ return &me->stop_info.stack_ptr;
}
#endif