------- Comment #6 from bart dot vanassche at gmail dot com  2009-06-07 07:09 
-------
(In reply to comment #5)
> 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).

As far as I can see gomp_new_team() only creates threads upon the first
invocation or when its third argument is larger than for any previous
invocation. So I'm still not convinced that comment #3 is correct.


-- 


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

Reply via email to