From commits-return-30471-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Wed Mar 14 10:14:31 2007 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 60291 invoked from network); 14 Mar 2007 10:14:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 10:14:31 -0000 Received: (qmail 20485 invoked by uid 500); 14 Mar 2007 10:14:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 20466 invoked by uid 500); 14 Mar 2007 10:14:38 -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 20445 invoked by uid 99); 14 Mar 2007 10:14:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 03:14:38 -0700 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, 14 Mar 2007 03:14:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 93AA3714072 for ; Wed, 14 Mar 2007 03:14:09 -0700 (PDT) Message-ID: <18534013.1173867249601.JavaMail.jira@brutus> Date: Wed, 14 Mar 2007 03:14:09 -0700 (PDT) From: "Alex Astapchuk (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3371) [drlvm][jit] Race condition at vm\jitrino\src\jet\compiler.cpp In-Reply-To: <6480831.1173718929573.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-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480713 ] Alex Astapchuk commented on HARMONY-3371: ----------------------------------------- This particular notice is false alarm. initProfilingData(unsinged* ) is only invoked from Compiler::compile() to write into Compiler::compile()'s *local* variable. There is no race here. > [drlvm][jit] Race condition at vm\jitrino\src\jet\compiler.cpp > -------------------------------------------------------------- > > Key: HARMONY-3371 > URL: https://issues.apache.org/jira/browse/HARMONY-3371 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Ilya Leviev > > There are thread unsafe access that result in race condition that occur during concurrent execution of enum JIT_Result Jitrino::Jet::Compiler::compile function. > Write -> Write data-race > Memory write at "compiler.cpp":119 conflicts with a prior memory write at "compiler.cpp":119 (L119: initProfilingData(&compile_flags)) > Build configuration - release > Stack Traces: > Context > Function void JIT_execute_method_default(void *,struct _jmethodID *,union jvalue *,union jvalue *) > Function void vm_execute_java_method_array(struct _jmethodID *,union jvalue *,union jvalue *) > Function apr_strtok > Function apr_strtok > Function void (__cdecl*lil_npc_to_fp(void *))(void) > Function vm_compile_method > Function struct ClassLoader * ClassLoader::LookupLoader(struct ManagedObject *) > Function JIT_compile_method_with_params "drljitinterface.cpp":274 > Function enum JIT_Result Jitrino::Jet::compile_with_params(void *,void *,struct Method *,struct OpenMethodExecutionParams) "jet.cpp":523 > Function enum JIT_Result Jitrino::Jet::Compiler::compile(void *,struct Method *,struct OpenMethodExecutionParams const &) "compiler.cpp":89 > 1st Access > Function bool exn_raised(void) > Function apr_strtok > Function apr_strtok > Function apr_strtok > Function void (__cdecl*lil_npc_to_fp(void *))(void) > Function vm_compile_method > Function struct ClassLoader * ClassLoader::LookupLoader(struct ManagedObject *) > Function JIT_compile_method_with_params "drljitinterface.cpp":274 > Function enum JIT_Result Jitrino::Jet::compile_with_params(void *,void *,struct Method *,struct OpenMethodExecutionParams) "jet.cpp":523 > Function enum JIT_Result Jitrino::Jet::Compiler::compile(void *,struct Method *,struct OpenMethodExecutionParams const &) "compiler.cpp":119 > 2nd Access > Function void JIT_execute_method_default(void *,struct _jmethodID *,union jvalue *,union jvalue *) > Function void vm_execute_java_method_array(struct _jmethodID *,union jvalue *,union jvalue *) > Function apr_strtok > Function apr_strtok > Function void (__cdecl*lil_npc_to_fp(void *))(void) > Function vm_compile_method > Function struct ClassLoader * ClassLoader::LookupLoader(struct ManagedObject *) > Function JIT_compile_method_with_params "drljitinterface.cpp":274 > Function enum JIT_Result Jitrino::Jet::compile_with_params(void *,void *,struct Method *,struct OpenMethodExecutionParams) "jet.cpp":523 > Function enum JIT_Result Jitrino::Jet::Compiler::compile(void *,struct Method *,struct OpenMethodExecutionParams const &) "compiler.cpp":119 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.