Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 52042 invoked from network); 10 Sep 2007 13:35:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 13:35:52 -0000 Received: (qmail 79243 invoked by uid 500); 10 Sep 2007 13:35:46 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 79154 invoked by uid 500); 10 Sep 2007 13:35:46 -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 79145 invoked by uid 99); 10 Sep 2007 13:35:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 06:35:46 -0700 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; Mon, 10 Sep 2007 13:37:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB0B07141ED for ; Mon, 10 Sep 2007 06:35:29 -0700 (PDT) Message-ID: <19354497.1189431329694.JavaMail.jira@brutus> Date: Mon, 10 Sep 2007 06:35:29 -0700 (PDT) From: "Yu-Nan He (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4551) [drlvm][gc_gen][perf]improvement for System.identityHashCode method In-Reply-To: <12291679.1185454540772.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-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yu-Nan He updated HARMONY-4551: ------------------------------- Attachment: hashcode_helper_inline_patch.patch hashcode_helper_inline_patch.patch is a patch for hashcode helper. In this patch, Could you please help to check. > [drlvm][gc_gen][perf]improvement for System.identityHashCode method > ------------------------------------------------------------------- > > Key: HARMONY-4551 > URL: https://issues.apache.org/jira/browse/HARMONY-4551 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Vladimir Strigun > Attachments: hashcode_helper_inline_patch.patch > > > System.identityHashCode could be faster if implemented via vmmagic code. > The next implementation shows significant speedup on small testcase (from 1609 msec for un-patched version to 409 msec on patched one): > return ObjectReference.fromObject(object).toAddress().toInt() > Small test: > public class Test { > public static void main(String[] args) { > runTest(1000, new Object()); > long start = System.currentTimeMillis(); > runTest(10000000, new Object()); > long end = System.currentTimeMillis() - start; > System.out.println("completed in "+end); > } > public static void runTest(int num, Object obj) { > for(int i=0; i System.identityHashCode(new Object()); > } > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.