Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 32167 invoked from network); 1 Dec 2010 14:51:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Dec 2010 14:51:01 -0000 Received: (qmail 90929 invoked by uid 500); 1 Dec 2010 14:51:01 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 90864 invoked by uid 500); 1 Dec 2010 14:51:01 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 90856 invoked by uid 99); 1 Dec 2010 14:51:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 14:51:00 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 14:50:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB1EobXD011040 for ; Wed, 1 Dec 2010 14:50:37 GMT Message-ID: <1870866.47071291215037092.JavaMail.jira@thor> Date: Wed, 1 Dec 2010 09:50:37 -0500 (EST) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Resolved: (CASSANDRA-1795) [patch] avoid unnecessary use of synchronized collection for non escaped local varables In-Reply-To: <32827748.41491291178590993.JavaMail.jira@thor> 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/CASSANDRA-1795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis resolved CASSANDRA-1795. --------------------------------------- Resolution: Fixed Fix Version/s: 0.7.0 Reviewer: jbellis Assignee: Dave Brosius committed, thanks! > [patch] avoid unnecessary use of synchronized collection for non escaped local varables > --------------------------------------------------------------------------------------- > > Key: CASSANDRA-1795 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1795 > Project: Cassandra > Issue Type: Improvement > Environment: ubuntu jdk1..6.17 ant 1.8 > Reporter: Dave Brosius > Assignee: Dave Brosius > Priority: Trivial > Fix For: 0.7.0 > > Attachments: avoid_local_sync_collections.diff > > Original Estimate: 1h > Remaining Estimate: 1h > > code uses a Hashtable even tho the collection is a local variable that is not escaped from the method. The synchronization is not needed, switch to HashMap. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.