Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 81965 invoked from network); 30 Oct 2006 08:28:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 08:28:30 -0000 Received: (qmail 34152 invoked by uid 500); 30 Oct 2006 08:28:39 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 34098 invoked by uid 500); 30 Oct 2006 08:28:39 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 34087 invoked by uid 99); 30 Oct 2006 08:28:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 00:28:39 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of justin.erenkrantz@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 00:28:26 -0800 Received: by nf-out-0910.google.com with SMTP id p77so2197011nfc for ; Mon, 30 Oct 2006 00:28:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=D80f2FDv8+ksFTmiuVxT86B+Oad+utjZHwxQdDUGxHDuxEokmdj/xa1waQsRyNawzaG0x54bfWtxDO4ZskHAHRUpWiJ8SUDpzXNTHaUAHuf41Vbz9vKUUPbiJemxKstvhzMUEorzM4AgVtMcaA3ONXgEhBTX8xF16aCGWLj+Ldo= Received: by 10.78.200.20 with SMTP id x20mr4482258huf; Mon, 30 Oct 2006 00:28:04 -0800 (PST) Received: by 10.78.81.4 with HTTP; Mon, 30 Oct 2006 00:28:04 -0800 (PST) Message-ID: <5c902b9e0610300028p21ebf300w66f121876ffb26a0@mail.gmail.com> Date: Mon, 30 Oct 2006 01:28:04 -0700 From: "Justin Erenkrantz" Sender: justin.erenkrantz@gmail.com To: mail@cohi.at Subject: Re: Patch 1 for apr_atomic.c (Solaris 10) Cc: Colin , dev@apr.apache.org In-Reply-To: <20061030082004.GA7671@p15097255.pureserver.info> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061029102904.GA14669@p15097255.pureserver.info> <5c902b9e0610292224r75b04dabs982fdb550806ac63@mail.gmail.com> <20061030072112.GA6932@p15097255.pureserver.info> <5c902b9e0610292358v2ce370f7r3aa898289e86e542@mail.gmail.com> <20061030082004.GA7671@p15097255.pureserver.info> X-Google-Sender-Auth: 9042ff1909fc6a97 X-Virus-Checked: Checked by ClamAV on apache.org On 10/30/06, Colin Hirsch wrote: > > The both use 'mfence' on AMD64. The AMD x86-64 manual: > > > > http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/24594.pdf > > > > 'mfence' is on page 182 of Vol 3: > > Aha, so we need a memory barrier on x86-64 too? The implementation currently > seems to assume that the same rule as for x86-32 applies, namely that the > architecture is NOT weakly ordered? I don't profess to know. But, AFAICT, both Intel and AMD CPUs support the MFENCE op when in x86-64 mode. > I haven't checked testatomic in depth, but it seems to test that the > individual operations work correctly, but not whether all combinations > of operations work correctly, otherwise it would have already found the > issues that the patch tries to fix. The problem is of course that it is > not so easy to test all operations, and all _combinations_, in a way > that really breaks if there is a problem with the synchronisation... Can we at least have it test the issues that this patch tries to fix? Are they easily reproducable? Thanks. -- justin