Welcome! Log In Create A New Profile

Advanced

Re: [Patch] nginx to use libatomic_ops

All files from this thread

File Name File Size   Posted by Date  
nginx-0.8.16-libatomic.patch 3.9 KB open | download W-Mark Kubacki 10/09/2009 Read message
Maxim Dounin
October 09, 2009 07:28AM
Hello!

On Fri, Oct 09, 2009 at 11:57:24AM +0200, W-Mark Kubacki wrote:

> 2009/10/8 Igor Sysoev <is@rambler-co.ru>:
> > On Tue, Sep 29, 2009 at 12:26:43PM +0200, W-Mark Kubacki wrote:
> >
> >> [...]
> >> What do you think about the compromise using GCC builtins if
> >> --with-libatomic is not set?
> >> Only architectures not covered by the #ifs would be affected and you
> >> could remove lock_file code entirely in future.
> >
> > On i386/amd64 gcc builtins are just inlines and do not require libgcc.
> > As to libatomic, I'm not sure now. I prefer to use complex libraries
> > such as OpenSSL, zlib, etc.
>
> On x86/amd64 the shipped assembler code works fine, and my libatomic
> patch was intended for 'other' architectures.
> Despite of the latter I believe reinventing the wheel (as did php-fpm)
> is no good engineering - and you need to maintain that code yourself
> rather than have the 'community' do that for you (and other projects).
>
> Unfortunately I don't know the "complex" libraries good enough to tell
> whether they contain atomic ops nor whether they export it.

The idea is that for simple and rarely changing things like atomic
ops it's better to have them in-place instead of in external
library. As external library may change, broke, disappear and so
on, as a result requiring much more attention then simple in-place
code.

Note well: I believe the actual problem isn't atomic ops that
isn't here. By design nginx should work without atomic ops. The
real problem is SIGSEGV you see without them. It should be fixed,
but unfortunately we have no hardware to reproduce the problem.

Maxim Dounin
Subject Author Posted

[Patch] nginx to use libatomic_ops

W-Mark Kubacki September 25, 2009 03:52PM

Re: [Patch] nginx to use libatomic_ops

Igor Sysoev September 29, 2009 04:26AM

Re: [Patch] nginx to use libatomic_ops

W-Mark Kubacki September 29, 2009 06:32AM

Re: [Patch] nginx to use libatomic_ops

Igor Sysoev October 08, 2009 11:50AM

Re: [Patch] nginx to use libatomic_ops Attachments

W-Mark Kubacki October 09, 2009 06:04AM

Re: [Patch] nginx to use libatomic_ops

Maxim Dounin October 09, 2009 07:28AM

Re: [Patch] nginx to use libatomic_ops

Igor Sysoev October 09, 2009 09:08AM

Re: [Patch] nginx to use libatomic_ops

Maxim Dounin October 11, 2009 09:00PM

Re: [Patch] nginx to use libatomic_ops

W-Mark Kubacki October 12, 2009 07:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready