Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 98251 invoked from network); 14 Jun 2007 15:29:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2007 15:29:55 -0000 Received: (qmail 24958 invoked by uid 500); 14 Jun 2007 15:29:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 24861 invoked by uid 500); 14 Jun 2007 15:29:51 -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 24810 invoked by uid 99); 14 Jun 2007 15:29:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 08:29:51 -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; Thu, 14 Jun 2007 08:29:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7950571419B for ; Thu, 14 Jun 2007 08:29:26 -0700 (PDT) Message-ID: <20688457.1181834966494.JavaMail.jira@brutus> Date: Thu, 14 Jun 2007 08:29:26 -0700 (PDT) From: "Ilya Leviev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4175) [drlvm][gc_gen][tc] Race condition at "gc_thread.h":(97-147) at thread_local_alloc() and alloc_context_reset() functions In-Reply-To: <24252207.1181834846998.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-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ilya Leviev updated HARMONY-4175: --------------------------------- Attachment: SourceViewScreenshot-1.jpg > [drlvm][gc_gen][tc] Race condition at "gc_thread.h":(97-147) at thread_local_alloc() and alloc_context_reset() functions > ------------------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-4175 > URL: https://issues.apache.org/jira/browse/HARMONY-4175 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Ilya Leviev > Priority: Minor > Attachments: SourceViewScreenshot-1.jpg > > > Race condition at "gc_thread.h":(97-147) at thread_local_alloc() and alloc_context_reset() functions > TC report on thread unsafe access that result in race condition that occur during concurrent execution of thread_local_alloc() and alloc_context_reset() functions > if it not affect correctness of execution I will mark it by special API for prevention of further alarms on this race. > Write -> Read data-race > Memory read at "gc_thread.h":147 conflicts with a prior memory write at "gc_thread.h":97 > Stack Trace: > > Context > Function void interpreter(struct StackFrame &) "interpreter.cpp":2931 > Function Opcode_INVOKESTATIC "interpreter.cpp":2104 > Function interpreterInvokeStatic "interpreter.cpp":3312 > Function void interpreterInvokeStaticNative(struct StackFrame &,struct StackFrame &,struct Method *) "interp_native_ia32.cpp":358 > Function invokeJNI "interp_native_ia32.cpp":49 > Function Java_java_lang_VMMemoryManager_runGC "java_lang_vmmemorymanager.cpp":138 > Function gc_force_gc "gc_for_vm.cpp":138 > Function void gc_reclaim_heap(struct GC *,unsigned int) "gc_common.cpp":300 > Function void gc_reset_mutator_context(struct GC *) "mutator.cpp":102 > Function void alloc_context_reset(struct Allocator *) "gc_thread.h":142 > Definition > Function hythread_create_with_group "thread_native_basic.c":136 > Function os_thread_create "os_thread.c":37 > Function _beginthreadex "threadex.c":145 > Function EntryPoint "dllcrt0.c":323 > Function threadstartex "threadex.c":241 > Function thread_start_proc "thread_native_basic.c":711 > Function wrapper_proc "thread_java_basic.c":82 > Function vm_attach "thread_generic.cpp":266 > Function gc_thread_init "gc_for_vm.cpp":152 > Function void mutator_initialize(struct GC *,void *) "mutator.cpp":30 > 1st Access > Function Opcode_INVOKEVIRTUAL "interpreter.cpp":2060 > Function interpreterInvokeVirtual "interpreter.cpp":3509 > Function interpreterInvoke "interpreter.cpp":3427 > Function void interpreter(struct StackFrame &) "interpreter.cpp":2841 > Function Opcode_NEWARRAY "interpreter.cpp":1090 > Function void * vm_new_vector_primitive(struct Class *,int) "vm_arrays.cpp":138 > Function gc_alloc "mutator_alloc.cpp":79 > Function void * nos_alloc(unsigned int,struct Allocator *) "gen.cpp":274 > Function void * fspace_alloc(unsigned int,struct Allocator *) "fspace_alloc.cpp":55 > Function struct Partial_Reveal_Object * thread_local_alloc(unsigned int,struct Allocator *) "gc_thread.h":97 > "96" "" " if (new_free <= ceiling){" > "97" "*" " allocator->free= (void*)new_free;" > "98" "" " return (Partial_Reveal_Object*)free;" > 2nd Access > Function void interpreter(struct StackFrame &) "interpreter.cpp":2931 > Function Opcode_INVOKESTATIC "interpreter.cpp":2104 > Function interpreterInvokeStatic "interpreter.cpp":3312 > Function void interpreterInvokeStaticNative(struct StackFrame &,struct StackFrame &,struct Method *) "interp_native_ia32.cpp":358 > Function invokeJNI "interp_native_ia32.cpp":49 > Function Java_java_lang_VMMemoryManager_runGC "java_lang_vmmemorymanager.cpp":138 > Function gc_force_gc "gc_for_vm.cpp":138 > Function void gc_reclaim_heap(struct GC *,unsigned int) "gc_common.cpp":300 > Function void gc_reset_mutator_context(struct GC *) "mutator.cpp":102 > Function void alloc_context_reset(struct Allocator *) "gc_thread.h":147 > "146" "" " assert(block->status == BLOCK_IN_USE);" > "147" "*" " block->free = allocator->free;" > "148" "" " block->status = BLOCK_USED;" > See also Source View screenshots. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.