Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 59039 invoked from network); 17 Jul 2007 15:18:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2007 15:18:28 -0000 Received: (qmail 11303 invoked by uid 500); 17 Jul 2007 15:18:28 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 11290 invoked by uid 500); 17 Jul 2007 15:18:28 -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 11272 invoked by uid 99); 17 Jul 2007 15:18:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 08:18:28 -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, 17 Jul 2007 08:18:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6894B71420D for ; Tue, 17 Jul 2007 08:18:05 -0700 (PDT) Message-ID: <21668743.1184685485425.JavaMail.jira@brutus> Date: Tue, 17 Jul 2007 08:18:05 -0700 (PDT) From: "Mikhail Fursov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-4004) [drlvm][jit][tc]Race conditions at vm\jitrino\src\main\compilationcontext.cpp: 143 In-Reply-To: <22211608.1180541715807.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-4004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Fursov resolved HARMONY-4004. ------------------------------------- Resolution: Fixed Committed as r556943 > [drlvm][jit][tc]Race conditions at vm\jitrino\src\main\compilationcontext.cpp: 143 > ---------------------------------------------------------------------------------- > > Key: HARMONY-4004 > URL: https://issues.apache.org/jira/browse/HARMONY-4004 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Ilya Leviev > Assignee: Mikhail Fursov > Attachments: 4004.patch, SourceViewScreenshot-1.jpg > > > TC report on thread unsafe access that result in race condition that occur during concurrent execution of current() function > if it not affect correctness of execution I will mark it by special API for prevention of further alarms on this race. > Write -> Write data-race > Memory write at "compilationcontext.cpp":143 conflicts with a prior memory write at "compilationcontext.cpp":143 > Stack Trace: > Context > Function class VM_thread * get_thread_ptr_stub(void) "thread_manager.cpp":138 > Function void * compile_me(struct Method *) "compile.cpp":794 > Function compile_do_compilation "compile.cpp":774 > Function CompileMethod "em_intf.cpp":49 > Function enum JIT_Result DrlEMImpl::compileMethod(struct Method *) "drlemimpl.cpp":545 > Function vm_compile_method "c_interface.cpp":2572 > Function enum JIT_Result compile_do_compilation_jit(struct Method *,class JIT *) "compile.cpp":658 > Function enum JIT_Result Dll_JIT::compile_method_with_params(void *,struct Method *,struct OpenMethodExecutionParams) "dll_jit_intf.h":86 > Function JIT_compile_method_with_params "drljitinterface.cpp":263 > Function class Jitrino::LogStreams & Jitrino::LogStreams::current(class Jitrino::JITInstanceContext *) "compilationcontext.cpp":130 > 1st Access > Function class VM_thread * get_thread_ptr_stub(void) "thread_manager.cpp":138 > Function void * compile_me(struct Method *) "compile.cpp":794 > Function compile_do_compilation "compile.cpp":774 > Function CompileMethod "em_intf.cpp":49 > Function enum JIT_Result DrlEMImpl::compileMethod(struct Method *) "drlemimpl.cpp":545 > Function vm_compile_method "c_interface.cpp":2572 > Function enum JIT_Result compile_do_compilation_jit(struct Method *,class JIT *) "compile.cpp":658 > Function enum JIT_Result Dll_JIT::compile_method_with_params(void *,struct Method *,struct OpenMethodExecutionParams) "dll_jit_intf.h":86 > Function JIT_compile_method_with_params "drljitinterface.cpp":263 > Function class Jitrino::LogStreams & Jitrino::LogStreams::current(class Jitrino::JITInstanceContext *) "compilationcontext.cpp":143 > "141" "" " if (sp == 0)" > "142" "" " { // new thread" > "143" "*" " ++thread_nb;" > "144" "" " sp = new TlsLogStreams();" > "145" "" " tlslogstreams.put(sp);" > "146" "" " }" > 2nd Access > Function class VM_thread * get_thread_ptr_stub(void) "thread_manager.cpp":138 > Function void * compile_me(struct Method *) "compile.cpp":794 > Function compile_do_compilation "compile.cpp":774 > Function CompileMethod "em_intf.cpp":49 > Function enum JIT_Result DrlEMImpl::compileMethod(struct Method *) "drlemimpl.cpp":545 > Function vm_compile_method "c_interface.cpp":2572 > Function enum JIT_Result compile_do_compilation_jit(struct Method *,class JIT *) "compile.cpp":658 > Function enum JIT_Result Dll_JIT::compile_method_with_params(void *,struct Method *,struct OpenMethodExecutionParams) "dll_jit_intf.h":86 > Function JIT_compile_method_with_params "drljitinterface.cpp":263 > Function class Jitrino::LogStreams & Jitrino::LogStreams::current(class Jitrino::JITInstanceContext *) "compilationcontext.cpp":143 > "141" "" " if (sp == 0)" > "142" "" " { // new thread" > "143" "*" " ++thread_nb;" > "144" "" " sp = new TlsLogStreams();" > "145" "" " tlslogstreams.put(sp);" > "146" "" " }" > See also Source View screenshot. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.