Commit bbf1efe1 by Kevin Buettner Committed by Kevin Buettner

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

libgomp/ChangeLog:

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

From-SVN: r269971
parent c2709ec4
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> 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
* testsuite/libgomp.oacc-c++/c++.exp: Specify * testsuite/libgomp.oacc-c++/c++.exp: Specify
......
...@@ -482,6 +482,8 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, ...@@ -482,6 +482,8 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads,
= gomp_realloc (pool->threads, = gomp_realloc (pool->threads,
pool->threads_size pool->threads_size
* sizeof (struct gomp_thread *)); * sizeof (struct gomp_thread *));
/* Add current (master) thread to threads[]. */
pool->threads[0] = thr;
} }
/* Release existing idle threads. */ /* Release existing idle threads. */
......
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