re PR libgomp/40174 (Memory leak when using '#pragma omp parallel')
PR libgomp/40174 * team.c (gomp_thread_start): Destroy thr->release semaphore. (gomp_free_pool_helper): Likewise. From-SVN: r147747
This commit is contained in:
parent
00c5fa1bca
commit
6dea8e99a9
|
@ -1,3 +1,9 @@
|
||||||
|
2009-05-20 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR libgomp/40174
|
||||||
|
* team.c (gomp_thread_start): Destroy thr->release semaphore.
|
||||||
|
(gomp_free_pool_helper): Likewise.
|
||||||
|
|
||||||
2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
|
2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
|
||||||
Jakub Jelinek <jakub@redhat.com>
|
Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,7 @@ gomp_thread_start (void *xdata)
|
||||||
while (local_fn);
|
while (local_fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gomp_sem_destroy (&thr->release);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,6 +202,7 @@ gomp_free_pool_helper (void *thread_pool)
|
||||||
struct gomp_thread_pool *pool
|
struct gomp_thread_pool *pool
|
||||||
= (struct gomp_thread_pool *) thread_pool;
|
= (struct gomp_thread_pool *) thread_pool;
|
||||||
gomp_barrier_wait_last (&pool->threads_dock);
|
gomp_barrier_wait_last (&pool->threads_dock);
|
||||||
|
gomp_sem_destroy (&gomp_thread ()->release);
|
||||||
pthread_exit (NULL);
|
pthread_exit (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue