Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0BF8613C for ; Fri, 20 May 2011 17:01:12 +0000 (UTC) Received: (qmail 4572 invoked by uid 500); 20 May 2011 17:01:11 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 4532 invoked by uid 500); 20 May 2011 17:01:11 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 4498 invoked by uid 99); 20 May 2011 17:01:11 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 17:01:11 +0000 Received: from localhost (HELO mail-iy0-f170.google.com) (127.0.0.1) (smtp-auth username phunt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 17:01:11 +0000 Received: by iyb12 with SMTP id 12so3807960iyb.15 for ; Fri, 20 May 2011 10:01:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.158.72 with SMTP id g8mr5447713icx.149.1305910870362; Fri, 20 May 2011 10:01:10 -0700 (PDT) Received: by 10.42.176.70 with HTTP; Fri, 20 May 2011 10:01:10 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 May 2011 10:01:10 -0700 Message-ID: Subject: Re: compiling c client on solaris/sparc From: Patrick Hunt To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi Botond, looking at the history for those lines it looks like that code has been untouched since before we moved to Apache (2008). A quick search turned up this interesting backgrounder: http://www.memoryhole.net/kyle/2007/05/atomic_incrementing.html (be sure to checkout the comments on that post) If you'd like to submit a patch to move away from asm I don't see why we wouldn't consider it. My concern would be that we replace it with something that we have a high confidence will work on all platforms, compilers, and compiler versions. Perhaps do it initially as a ifdef? Patrick On Fri, May 20, 2011 at 8:06 AM, Botond Hejj wrote: > Hi, > > I am compiling the zookeeper c client on solaris and I noticed that > mt_adaptor.c has some assembly code in it. This makes porting to other > platforms (sparc) difficult. What is the reason behind using assembly and > are there any plans to change that to c code? > > Regards, > Botond Hejj > Morgan Stanley | Technology > Lechner Odon fasor 8 | Floor 07 > Budapest, 1095 > Phone: +36 1 881-3962 > Botond.Hejj@MorganStanley.com >