------- Comment #5 from pinskia at gcc dot gnu dot org  2009-06-07 06:57 -------
You have to read the code to understand how that happens.
But basically GOMP_parallel_start does:
  gomp_team_start (fn, data, num_threads, gomp_new_team (num_threads));

Where gomp_new_team creates the *thr (which is a big malloc) and then
gomp_team_start creates the threads (and also does the write before creating
the thread).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40362

Reply via email to