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: C++ PATCH: Improve exceptions/inlining compile-time performance


On Wed, 2003-04-23 at 01:13, Richard Guenther wrote:
> On Tue, 22 Apr 2003, Richard Henderson wrote:
> 
> > On Tue, Apr 22, 2003 at 08:13:48AM -0700, Mark Mitchell wrote:
> > > Putting a "throw ()" on "f" will definitely be a win for the forseeable
> > > future.
> >
> > One should note that threaded programs cannot do this if
> > they want cancellation, as discussed elsewhere.
> 
> So to apply this optimization one would have to mark the method
> attribute((always_inline)) throw() - then thread cancellation
> will work in all cases?

That should work.  

If the function never calls anything which is a thread-cancellation
point, this is a non-issue.  (And most high-performance applications
aren't making blocking syscalls in their inner loops, which are the only
ones that can block.)

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery dot com


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