Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 79283 invoked from network); 29 May 2007 11:19:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2007 11:19:37 -0000 Received: (qmail 60282 invoked by uid 500); 29 May 2007 11:19:41 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 60262 invoked by uid 500); 29 May 2007 11:19:41 -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 60253 invoked by uid 99); 29 May 2007 11:19:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 04:19:41 -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, 29 May 2007 04:19:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E0BCA71417B for ; Tue, 29 May 2007 04:19:15 -0700 (PDT) Message-ID: <28381997.1180437555916.JavaMail.jira@brutus> Date: Tue, 29 May 2007 04:19:15 -0700 (PDT) From: "Ilya Leviev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-3978) [drlvm][gc_gen] Known/proven race conditions markup at "gc_common.h":175 and collector_alloc.h":76 In-Reply-To: <25780901.1180088716347.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-3978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ilya Leviev closed HARMONY-3978. -------------------------------- Resolution: Fixed Xiao-Feng, patch verified at 542434 Thank you for applying it. > [drlvm][gc_gen] Known/proven race conditions markup at "gc_common.h":175 and collector_alloc.h":76 > -------------------------------------------------------------------------------------------------- > > Key: HARMONY-3978 > URL: https://issues.apache.org/jira/browse/HARMONY-3978 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Ilya Leviev > Assignee: Xiao-Feng Li > Attachments: HARMONY-3978_add_markup.patch, SourceViewScreenshot-1.jpg > > > TC report on thread unsafe access that result in race condition that occur during concurrent execution of collector_forward_object and write_slot functions > 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 "gc_common.h":175 conflicts with a prior memory write at "collector_alloc.h":76 > Stack Trace: > Context > 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 collector_thread_func "collector.cpp":181 > Function void nongen_forward_pool(struct Collector *) "fspace_nongen_forward_pool.cpp":220 > Function collector_trace_rootsets "fspace_nongen_forward_pool.cpp":178 > Function trace_object "fspace_nongen_forward_pool.cpp":123 > Function forward_object "fspace_nongen_forward_pool.cpp":115 > Function void write_slot(struct Partial_Reveal_Object * *,struct Partial_Reveal_Object *) "gc_common.h":175 > 1st Access > 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 collector_thread_func "collector.cpp":181 > Function void nongen_forward_pool(struct Collector *) "fspace_nongen_forward_pool.cpp":220 > Function collector_trace_rootsets "fspace_nongen_forward_pool.cpp":178 > Function trace_object "fspace_nongen_forward_pool.cpp":128 > Function forward_object "fspace_nongen_forward_pool.cpp":94 > Function struct Partial_Reveal_Object * collector_forward_object(struct Collector *,struct Partial_Reveal_Object *) "collector_alloc.h":76 > "74" "" " oi = trace_forward_process_hashcode(p_targ_obj, p_obj ,oi, size);" > "75" "" " }else{" > "76" "*" " memcpy(p_targ_obj, p_obj, size); " > "77" "" " }" > "78" "" " #else" > 2nd Access > 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 collector_thread_func "collector.cpp":181 > Function void nongen_forward_pool(struct Collector *) "fspace_nongen_forward_pool.cpp":220 > Function collector_trace_rootsets "fspace_nongen_forward_pool.cpp":178 > Function trace_object "fspace_nongen_forward_pool.cpp":123 > Function forward_object "fspace_nongen_forward_pool.cpp":115 > Function void write_slot(struct Partial_Reveal_Object * *,struct Partial_Reveal_Object *) "gc_common.h":175 > "173" "" " " > "174" "" " FORCE_INLINE void write_slot(REF *p_slot, Partial_Reveal_Object *p_obj)" > "175" "*" " { *p_slot = obj_ptr_to_ref(p_obj); }" > "176" "" " " > "177" "" " " > 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.