team.c (gomp_team_start): Initialize pool->threads[0].

libgomp/ChangeLog:

	* team.c (gomp_team_start): Initialize pool->threads[0].

From-SVN: r269971
This commit is contained in:
Kevin Buettner 2019-03-27 18:30:44 +00:00 committed by Kevin Buettner
parent c2709ec42b
commit bbf1efe1b4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2019-03-27 Kevin Buettner <kevinb@redhat.com>
* team.c (gomp_team_start): Initialize pool->threads[0].
2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
* testsuite/libgomp.oacc-c++/c++.exp: Specify

View File

@ -482,6 +482,8 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads,
= gomp_realloc (pool->threads,
pool->threads_size
* sizeof (struct gomp_thread *));
/* Add current (master) thread to threads[]. */
pool->threads[0] = thr;
}
/* Release existing idle threads. */