This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/40174] Memory leak when using '#pragma omp parallel'
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2009 07:31:30 -0000
- Subject: [Bug libgomp/40174] Memory leak when using '#pragma omp parallel'
- References: <bug-40174-17724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2009-05-19 07:31 -------
Created an attachment (id=17891)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17891&action=view)
gcc45-pr40174.patch
thr->release is owned by thread, not team, and is initialized by the thread, so
it should be each thread that destroys it as well, not the team.
Can you please try this patch instead? It makes no difference on Linux,
because gomp_sem_destroy is empty inline, so I can't verify it easily.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40174