Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 65670 invoked from network); 16 Mar 2010 02:56:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Mar 2010 02:56:49 -0000 Received: (qmail 71491 invoked by uid 500); 16 Mar 2010 02:56:48 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 71398 invoked by uid 500); 16 Mar 2010 02:56:48 -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 71387 invoked by uid 99); 16 Mar 2010 02:56:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 02:56:48 +0000 X-ASF-Spam-Status: No, hits=-1022.8 required=10.0 tests=ALL_TRUSTED,AWL 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 Mar 2010 02:56:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 63217234C495 for ; Tue, 16 Mar 2010 02:56:27 +0000 (UTC) Message-ID: <205352713.281141268708187405.JavaMail.jira@brutus.apache.org> Date: Tue, 16 Mar 2010 02:56:27 +0000 (UTC) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-6461) [classlib][nio_char]Remove alias cache from Charset In-Reply-To: <708639123.30351267609287182.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Regis Xu reassigned HARMONY-6461: --------------------------------- Assignee: Regis Xu > [classlib][nio_char]Remove alias cache from Charset > --------------------------------------------------- > > Key: HARMONY-6461 > URL: https://issues.apache.org/jira/browse/HARMONY-6461 > Project: Harmony > Issue Type: Bug > Affects Versions: 5.0M14 > Reporter: deven you > Assignee: Regis Xu > Fix For: 5.0M14 > > Attachments: HY-6461.diff > > Original Estimate: 96h > Remaining Estimate: 96h > > At present, when a charset is loaded by a charset name, Charset class will cache all alias of that charset. However it is not a good design because harmony use built-in charset provider and third party providers. We can not ensure one alias only belongs to a unique charset which provided by built-in or 3rd providers. Actually now harmony use built-in and icu provider has already countered such problems with this design. Below charset alias belong to more than one charset: > TIS-620, > windows-1258, > cp856, > cp922 > Now Charset only solve this issue with hard code. I think the correct way to deal with this situation is that when Charset load a charset with a charset name, it should only cache this charset name and the canonical name of the charset, rather than cache all alias of that charset. Follow this way the alias conflict will be solved and there is no need of any hard code anymore. > I have test this patch for many common benchmarks like specjvm2008, specjbb2005, volano and dacapo. It shows there is no performance regression for this design change. So please someone verify this patch. Thanks a lot! > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.