Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 72536 invoked from network); 6 Aug 2007 23:56:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2007 23:56:02 -0000 Received: (qmail 25475 invoked by uid 500); 6 Aug 2007 23:55:55 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 25425 invoked by uid 500); 6 Aug 2007 23:55:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 25414 invoked by uid 99); 6 Aug 2007 23:55:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 16:55:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.133.192.6] (HELO jaguNET.com) (209.133.192.6) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 23:55:38 +0000 Received: from jaguNET.com (localhost [127.0.0.1]) by devsys.jaguNET.com (8.13.8/8.13.6) with ESMTP id l76NtP7W041542 for ; Mon, 6 Aug 2007 19:55:25 -0400 (EDT) (envelope-from jim@jaguNET.com) Received: (from jim@localhost) by devsys.jaguNET.com (8.13.6/8.13.6/Submit) id l76NtPcf041541 for dev@httpd.apache.org; Mon, 6 Aug 2007 19:55:25 -0400 (EDT) (envelope-from jim) From: Jim Jagielski Message-Id: <200708062355.l76NtPcf041541@devsys.jaguNET.com> Subject: Re: svn commit: r563147 - /httpd/httpd/trunk/server/mpm/experimental/event/fdqueue.c To: dev@httpd.apache.org Date: Mon, 6 Aug 2007 19:55:25 -0400 (EDT) Reply-To: jim@jaguNET.com In-Reply-To: <46B7813E.5010709@apache.org> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ruediger Pluem wrote: > > > > On 08/06/2007 04:20 PM, jim@apache.org wrote: > > Author: jim > > Date: Mon Aug 6 07:20:24 2007 > > New Revision: 563147 > > > > URL: http://svn.apache.org/viewvc?view=rev&rev=563147 > > Log: > > These atomics expect apr_uint32_t *... The expectation, of course, > > is that the add/inc still works "as expected" even though we > > are using signed values. > > Hm. I have a bad feeling here. These atomics are platform specific and seemed > to be designed for unsigned ints. Are we really sure that they can handle signed ints > as well? Comments from an atomics guru from APR? > As mentioned in the log, the patch isn't designed to "fix" the fact that we're using a signed 32 bit int with a function (assembly no less!) that expects unsigned. Rather it's to remove a compiler error which complains about it. Ideally, we should craft a different method than idler going negative to reflect the state change, and I have an idea about that. -- =========================================================================== Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/ "If you can dodge a wrench, you can dodge a ball."