Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 55250 invoked from network); 29 May 2007 09:55:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2007 09:55:37 -0000 Received: (qmail 37691 invoked by uid 500); 29 May 2007 09:55:41 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 37669 invoked by uid 500); 29 May 2007 09:55: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 37660 invoked by uid 99); 29 May 2007 09:55: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 02:55: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 02:55:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3265E71417D for ; Tue, 29 May 2007 02:55:16 -0700 (PDT) Message-ID: <5886020.1180432516201.JavaMail.jira@brutus> Date: Tue, 29 May 2007 02:55:16 -0700 (PDT) From: "Ilya Leviev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-3973) [drlvm][gc_gen] Known/proven race conditions markup at "sync_stack.h"(124-111): at sync_stack_push() and sync_stack_pop() functions In-Reply-To: <5242575.1180084996334.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-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ilya Leviev closed HARMONY-3973. -------------------------------- Resolution: Fixed Xiao-Feng, patch verified at 542434 Thank you for applying it. > [drlvm][gc_gen] Known/proven race conditions markup at "sync_stack.h"(124-111): at sync_stack_push() and sync_stack_pop() functions > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3973 > URL: https://issues.apache.org/jira/browse/HARMONY-3973 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Ilya Leviev > Assignee: Xiao-Feng Li > Attachments: HARMONY-3973_add_markup.patch, SourceViewScreenshot-1.jpg > > > TC report on thread unsafe access that result in race condition that occur during concurrent execution of sync_stack_push() and sync_stack_pop() 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 "sync_stack.h":111 conflicts with a prior memory write at "sync_stack.h":124 > Stack Trace: > Context > 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 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":171 > Function struct Vector_Block * pool_get_entry(struct Sync_Stack *) "sync_pool.h":37 > Function struct Node * sync_stack_pop(struct Sync_Stack *) "sync_stack.h":102 > 1st Access > 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 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":165 > Function void pool_put_entry(struct Sync_Stack *,void *) "sync_pool.h":44 > Function unsigned int sync_stack_push(struct Sync_Stack *,struct Node *) "sync_stack.h":124 > 121" "" " inline Boolean sync_stack_push(Sync_Stack* stack, Node* node)" > "122" "" " {" > "123" "" " Stack_Top cur_top = stack->top;" > "124" "*" " node->next = stack_top_get_entry(cur_top);" > "125" "" " POINTER_SIZE_INT new_version = stack_top_get_next_version(cur_top);" > "126" "" " POINTER_SIZE_INT temp = stack_top_contruct(node, new_version);" > 2nd Access > 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 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":171 > Function struct Vector_Block * pool_get_entry(struct Sync_Stack *) "sync_pool.h":37 > Function struct Node * sync_stack_pop(struct Sync_Stack *) "sync_stack.h":111 > "109" "" " temp = (POINTER_SIZE_INT)atomic_casptr((volatile void**)&stack->top, (void*)temp, (void*)cur_top);" > "110" "" " if(temp == *(POINTER_SIZE_INT*)&cur_top){ // got it " > "111" "*" " top_entry->next = NULL;" > "112" "" " return top_entry;" > "113" "" " }" > 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.