]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp/ChangeLog:
authorkevinb <kevinb@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2019 18:30:44 +0000 (18:30 +0000)
committerkevinb <kevinb@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2019 18:30:44 +0000 (18:30 +0000)
* team.c (gomp_team_start): Initialize pool->threads[0].

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269971 138bc75d-0d04-0410-961f-82ee72b054a4

libgomp/ChangeLog
libgomp/team.c

index 41ee3ed60c55dc15f1c2bef0560f4ebdf09388fa..30bb2d4beba4262038ce5593230bfec9949cc9e9 100644 (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
index 2b2e9750da51200d754acbcc9b4abe529e8601d0..c422da3701df38c4d949cecf74b12dadbf387bf6 100644 (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.  */