Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 31984 invoked from network); 7 Feb 2007 12:38:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2007 12:38:28 -0000 Received: (qmail 76067 invoked by uid 500); 7 Feb 2007 12:38:35 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 76041 invoked by uid 500); 7 Feb 2007 12:38:35 -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 76030 invoked by uid 99); 7 Feb 2007 12:38:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 04:38:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Wed, 07 Feb 2007 04:38:28 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BFDDD7142D1 for ; Wed, 7 Feb 2007 04:38:07 -0800 (PST) Message-ID: <8811472.1170851887783.JavaMail.jira@brutus> Date: Wed, 7 Feb 2007 04:38:07 -0800 (PST) From: "Alexey Varlamov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-3129) [drlvm][intel64][lil]race condition and buffer overruns in LIL codegen In-Reply-To: <19175879.1170831245786.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-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Varlamov resolved HARMONY-3129. -------------------------------------- Resolution: Fixed Applied at r504526, thanks! > [drlvm][intel64][lil]race condition and buffer overruns in LIL codegen > ---------------------------------------------------------------------- > > Key: HARMONY-3129 > URL: https://issues.apache.org/jira/browse/HARMONY-3129 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Alex Astapchuk > Assigned To: Alexey Varlamov > Attachments: 0001-drlvm-intel64-lil-race-condition-and-buffer-overruns-in-LIL-codegen.txt > > > There were 2 problems in LIL codegen for Intel64: > 1. A code for temporary register usage had a static variable shared across all threads. > This lead to a race condition during compilations, and might lead to crash or unpredictable behavior. > Now, the code uses per-compilation variables. > 2. A fixed size for temporary buffer was used which sometimes lead to buffer overruns for huge stubs (e.g. for JNI stub with a really huge number of args). > Now, the buffer size is estimated basing on the stub size. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.