]> granicus.if.org Git - gc/commit
Optimization: move pthread_self calls out of LOCK section
authorIvan Maidanski <ivmai@mail.ru>
Tue, 10 Jan 2012 18:03:20 +0000 (22:03 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 11 Jan 2012 14:52:02 +0000 (18:52 +0400)
commitce66fbba7c54f563f4f143b9478b2a8400aef170
treea768b03535f64327fe4b2899b73c59e264a0d720
parent594ce15c55f0a717b365f3ed7f3e6880a85b4a2f
Optimization: move pthread_self calls out of LOCK section

* pthread_support.c (GC_do_blocking_inner, GC_call_with_gc_active,
pthread_exit): Move pthread_self call out of LOCK section (declare
"self" local variable).
* win32_threads.c (GC_call_with_gc_active): Move GetCurrentThreadId
call out of LOCK section (declare "thread_id" local variable).
pthread_support.c
win32_threads.c