projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f487f27
)
Fix double lock in pthread_detach (Cygwin, winpthreads)
author
Ivan Maidanski
<ivmai@mail.ru>
Mon, 25 Sep 2017 22:12:30 +0000
(
01:12
+0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Mon, 25 Sep 2017 22:12:30 +0000
(
01:12
+0300)
* win32_threads.c [GC_PTHREADS] (GC_pthread_detach): Do not hold the
allocation lock when GC_lookup_pthread is invoked.
win32_threads.c
patch
|
blob
|
history
diff --git
a/win32_threads.c
b/win32_threads.c
index
a99eec1
..
24f16db
100644
(file)
--- a/
win32_threads.c
+++ b/
win32_threads.c
@@
-2715,9
+2715,7
@@
GC_INNER void GC_thr_init(void)
DCL_LOCK_STATE;
GC_ASSERT(!GC_win32_dll_threads);
- LOCK();
t = GC_lookup_pthread(thread);
- UNLOCK();
result = pthread_detach(thread);
if (result == 0) {
if (NULL == t) ABORT("Thread not registered");