You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Leviev (JIRA)" <ji...@apache.org> on 2007/05/28 19:21:15 UTC

[jira] Reopened: (HARMONY-3978) [drlvm][gc_gen] Race conditions at "gc_common.h":175 and collector_alloc.h":76

     [ https://issues.apache.org/jira/browse/HARMONY-3978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilya Leviev reopened HARMONY-3978:
----------------------------------


patch that mark race by special API for prevention of further alarms should be applied

> [drlvm][gc_gen] Race conditions 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.