Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 68088 invoked from network); 9 Nov 2007 13:36:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 13:36:13 -0000 Received: (qmail 2803 invoked by uid 500); 9 Nov 2007 13:36:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 2709 invoked by uid 500); 9 Nov 2007 13:36:01 -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 2700 invoked by uid 99); 9 Nov 2007 13:36:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 05:36:01 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 13:36:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BDF6771420A for ; Fri, 9 Nov 2007 05:35:50 -0800 (PST) Message-ID: <931286.1194615350767.JavaMail.jira@brutus> Date: Fri, 9 Nov 2007 05:35:50 -0800 (PST) From: "Pavel Pervov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5040) [drlvm][classloader] Java field ordering must be preserved In-Reply-To: <212964.1193668970717.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pavel Pervov updated HARMONY-5040: ---------------------------------- Attachment: fo-stable-1.patch Here is the updated patch. qsort and company is also removed. > [drlvm][classloader] Java field ordering must be preserved > ---------------------------------------------------------- > > Key: HARMONY-5040 > URL: https://issues.apache.org/jira/browse/HARMONY-5040 > Project: Harmony > Issue Type: Improvement > Components: DRLVM > Reporter: Aleksey Shipilev > Attachments: fo-stable-1.patch, fo-stable-1.patch > > > Current implementation of class support in Harmony sorts the class fields decrementally by size to avoid misalignment. However, it's done with quicksort which is known to be unstable (e.g. there are no guarantees that order of elements with equal keys will not be changed). That lead to shaking Java field order which could be optimized to achieve the spatial locality. > Proposed patch changes the sorting algorithm to bubblesort, which is known to be stable. That's performance-safe since average field count is not high. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.