You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/12/05 11:57:43 UTC

[jira] Closed: (HARMONY-5234) [drlvm][init] end_waiting_num for ref enqueue threads is never initialized

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

Gregory Shimansky closed HARMONY-5234.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0M4

Patch is applied at 601291.

> [drlvm][init] end_waiting_num for ref enqueue threads is never initialized
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-5234
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5234
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Ilya Berezhniuk
>            Assignee: Gregory Shimansky
>            Priority: Minor
>             Fix For: 5.0M4
>
>         Attachments: H-5234.patch
>
>
> ref_thread_info->end_waiting_num is used for counting, and is changed by atomic operations.
> But this field is never initialized.
> The message from Valgrind:
> -------------------------------------------------
> ==18838== Conditional jump or move depends on uninitialised value(s)
> ==18838==    at 0x4844CDE: ref_enqueue_thread_func(void**) (ref_enqueue_thread.cpp:161)
> ==18838==    by 0x404D979: hythread_wrapper_start_proc (thread_native_basic.c:734)
> ==18838==    by 0x443A34A: start_thread (in /lib/libpthread-2.4.so)
> ==18838==    by 0x42BF65D: clone (in /lib/libc-2.4.so)
> -------------------------------------------------
> The patch is trivial.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.