Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 25584 invoked from network); 2 Apr 2009 15:53:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2009 15:53:17 -0000 Received: (qmail 22402 invoked by uid 500); 2 Apr 2009 15:53:16 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 22318 invoked by uid 500); 2 Apr 2009 15:53:16 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 22307 invoked by uid 99); 2 Apr 2009 15:53:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 15:53:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of t.p.ellison@gmail.com designates 209.85.219.161 as permitted sender) Received: from [209.85.219.161] (HELO mail-ew0-f161.google.com) (209.85.219.161) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 15:53:10 +0000 Received: by ewy5 with SMTP id 5so559472ewy.36 for ; Thu, 02 Apr 2009 08:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hJ5bXO6a9VH2fqjecv2y4xqW3te4O9lBwyL9xXSmM2M=; b=jtn3J7NrhPQlD9VL7S4Yu3ihIlSqm+UBHLjPw5iSouHOvki9zs++56bv7NAFJ9VBxh VeMviRFtjg8lBZR3EK6c1ntGvbVdmuLXHabRLZ+V30sTrxUC2w+CXDxXtQ8i56Pjip4l jCGxSJfhJSSrizOYThScFCquX+oBNUma2B3LI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Ryf00ssYV9w2IBZ5YHmsTwZTHk1GDMJo9k3ztPY/1AcaWJVC48B0AwLYImOI+LwVHr 7vo6pwUm9n4LwQgZ3Jj9DNwePx/9nmmVL4fbAcZzvKpe5JksgC2rKttq6ym4kCMAVQ8f 8nZeL1DNDIJ+nTjuuqHvesQRqFV/QkNf/Avhg= MIME-Version: 1.0 Received: by 10.210.137.14 with SMTP id k14mr88815ebd.92.1238687568497; Thu, 02 Apr 2009 08:52:48 -0700 (PDT) In-Reply-To: <5467736.1238687353110.JavaMail.jira@brutus> References: <5467736.1238687353110.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 16:52:48 +0100 Message-ID: <5899fca70904020852s7d19a03dxd0c1910cae819888@mail.gmail.com> Subject: Fwd: [jira] Created: (HARMONY-6137) [drlvm][concurrent] AtomicLong compare and swap returning wrong indicator From: Tim Ellison To: dev@harmony.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I think this could be the cause of the concurrent test failures we are seeing on M9 testing. ---------- Forwarded message ---------- From: Tim Ellison (JIRA) Date: 2009/4/2 Subject: [jira] Created: (HARMONY-6137) [drlvm][concurrent] AtomicLong compare and swap returning wrong indicator To: commits@harmony.apache.org [drlvm][concurrent] AtomicLong compare and swap returning wrong indicator ------------------------------------------------------------------------- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Key: HARMONY-6137 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 URL: https://issues= .apache.org/jira/browse/HARMONY-6137 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Project: Harmony =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Issue Type: Bug =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Components: DRLVM =C2=A0 =C2=A0 =C2=A0 =C2=A0 Environment: Linux, r761319 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Reporter: Tim Ellison Consider the following code that exercises AtomLong compare and swap operat= ions: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0AtomicLong atomLong = =3D new AtomicLong(1); =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0System.out.println(a= tomLong.get()); =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0System.out.println("= CAS 1,-4 =3D " + atomLong.compareAndSet(1, -4)); =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0System.out.println(a= tomLong.get()); =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0System.out.println("= CAS -5,1 =3D " + atomLong.compareAndSet(-5, 1)); =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0System.out.println(a= tomLong.get()); I expect it to print out: =C2=A0 1 =C2=A0 CAS 1,-4 =3D true =C2=A0 -4 =C2=A0 CAS -5,1 =3D false =C2=A0 -4 Since the comparison of --4 and -5 fails. However when running that code on harmony r761319 I see =C2=A0 1 =C2=A0 CAS 1,-4 =3D true =C2=A0 -4 =C2=A0 CAS -5,1 =3D true =C2=A0 -4 i.e. the swap is not done, but the method returned true as though it had done the swap. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.