Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 96673 invoked from network); 16 Jun 2009 09:31:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 09:31:18 -0000 Received: (qmail 39095 invoked by uid 500); 16 Jun 2009 09:31:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 39065 invoked by uid 500); 16 Jun 2009 09:31:29 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 39056 invoked by uid 99); 16 Jun 2009 09:31:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 09:31:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 09:31:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B525D234C045 for ; Tue, 16 Jun 2009 02:31:07 -0700 (PDT) Message-ID: <1022594771.1245144667727.JavaMail.jira@brutus> Date: Tue, 16 Jun 2009 02:31:07 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6236) [classlib][luni] ArrayList breaks when given concurrent collections as input In-Reply-To: <898817199.1245104887334.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison updated HARMONY-6236: --------------------------------- Fix Version/s: 5.0M11 > [classlib][luni] ArrayList breaks when given concurrent collections as input > ---------------------------------------------------------------------------- > > Key: HARMONY-6236 > URL: https://issues.apache.org/jira/browse/HARMONY-6236 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M10 > Environment: SVN Revision: 784898 > Reporter: Jesse Wilson > Assignee: Tim Ellison > Fix For: 5.0M11 > > Attachments: ArrayList_on_concurrent_collections.patch > > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > new ArrayList() and ArrayList.addAll(Collection) assume the passed-in collection will not change between calls. > In the attached test case, a special collection simulates a background thread calling "remove" after the ArrayList has called size(), but before it has called "toArray()". This causes the collection to return a null-padded array, which leads to a corrupt ArrayList. The attached patch fixes the problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.