看板 FB_bugs 關於我們 聯絡資訊
The following reply was made to PR gnu/134604; it has been noted by GNATS. From: Mikolaj Golub <to.my.trociny@gmail.com> To: bug-followup@FreeBSD.org Cc: Subject: Re: gnu/134604: Memory leak in gcclibs/libgomp Date: Thu, 21 May 2009 22:17:28 +0300 --=-=-= This bug has been fixed in upstream for gcc 4.4/4.5. The developer has pointed out that correct place to call sem_destroy() is on returning from gomp_thread_start(). So the patch for libgomp from RELENG_7 (gcc 4.2.1) would be even simpler then provided previously. -- Mikolaj Golub --=-=-= Content-Disposition: inline; filename=team.c.patch.txt --- contrib/gcclibs/libgomp/team.c.orig 2009-05-16 17:32:57.000000000 +0300 +++ contrib/gcclibs/libgomp/team.c 2009-05-21 22:04:24.000000000 +0300 @@ -127,6 +127,7 @@ gomp_thread_start (void *xdata) while (local_fn); } + gomp_sem_destroy (&thr->release); return NULL; } --=-=-=-- _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"