Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 63568 invoked from network); 4 Sep 2007 10:59:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 10:59:19 -0000 Received: (qmail 69627 invoked by uid 500); 4 Sep 2007 10:59:14 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 69612 invoked by uid 500); 4 Sep 2007 10:59:14 -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 69602 invoked by uid 99); 4 Sep 2007 10:59:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 03:59:14 -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; Tue, 04 Sep 2007 10:59:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 94076714159 for ; Tue, 4 Sep 2007 03:58:58 -0700 (PDT) Message-ID: <24864481.1188903538594.JavaMail.jira@brutus> Date: Tue, 4 Sep 2007 03:58:58 -0700 (PDT) From: "Aleksey Shipilev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4729) [drlvm][jni] JNI transition should inline hythread_suspend_enable() and hythread_suspend_disable() In-Reply-To: <4169346.1188903418176.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-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Shipilev updated HARMONY-4729: -------------------------------------- Attachment: jni-hythr.patch jni-hythr.patch The patch is rather dirty and was tested only on Windows/ia32. This implementation lacks support for other architectures. > [drlvm][jni] JNI transition should inline hythread_suspend_enable() and hythread_suspend_disable() > -------------------------------------------------------------------------------------------------- > > Key: HARMONY-4729 > URL: https://issues.apache.org/jira/browse/HARMONY-4729 > Project: Harmony > Issue Type: Improvement > Components: DRLVM > Reporter: Aleksey Shipilev > Attachments: jni-hythr.patch > > > JNI calls a pair of hythread_suspend_enable() and hythread_suspend_disable() every time the transition occurs. That lead to serious overhead due to calls. > The idea is to inline these methods by implementing two mnemonics in LIL - hse() and hsd(), then LIL codegenerator will generate the code for them. More solid solution should inline method calls in LIL, but it's too complex to achieve. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.