This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Old school parallelization of WPA streaming


Hi,

On Wed, 21 Aug 2013, Richard Biener wrote:

> I also fail to see why threads should not work here.  Maybe simply 
> annotate gcc with openmp?

Threads simply don't work here, because the whole streamer infrastructure 
(or anything else in GCC for that matter) isn't thread safe (you'd have to 
have multiple streamer objects, multiple SCC finder objects, and you'd 
have to audit everything for not using any other shared resources).  
Fork-fire-forget is really a much simpler choice here IMO; no worries 
about shared resources, less debug hassle.


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]