Commit 4db72361 by Jakub Jelinek Committed by Jakub Jelinek

team.c (gomp_team_end): Free team immediately if it has just one thread.

	* team.c (gomp_team_end): Free team immediately if it has
	just one thread.

From-SVN: r137886
parent 9a8d7941
2008-07-16 Jakub Jelinek <jakub@redhat.com>
* team.c (gomp_team_end): Free team immediately if it has
just one thread.
2008-07-08 David Edelsohn <edelsohn@gnu.org>
* testsuite/libgomp.c++/c++.exp: Append multilib library path.
......
......@@ -498,7 +498,8 @@ gomp_team_end (void)
gomp_mutex_destroy (&team->work_share_list_free_lock);
#endif
if (__builtin_expect (thr->ts.team != NULL, 0))
if (__builtin_expect (thr->ts.team != NULL, 0)
|| __builtin_expect (team->nthreads == 1, 0))
free_team (team);
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment