You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/01/11 10:08:00 UTC

[jira] [Commented] (WEEX-189) deadlock sometimes due to the thread-Safe dictionary

    [ https://issues.apache.org/jira/browse/WEEX-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16321988#comment-16321988 ] 

ASF GitHub Bot commented on WEEX-189:
-------------------------------------

GitHub user acton393 opened a pull request:

    https://github.com/apache/incubator-weex/pull/979

    [WEEX-189][iOS] use os_unfair_lock and pthread_mutex

    [WEEX-189][iOS] use os_unfair_lock and pthread_mutex
    
    here show more details about performance of pthread_mutex and os_unfair_lock
    https://gist.github.com/misbell/2dc38c47ff56f91c6775dde2be1fceb4
    
    Bug:189

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/acton393/incubator-weex ios-feature-recursivelock

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-weex/pull/979.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #979
    
----
commit 380d8cee558c3c20b0000fbb2a9dc8dfca43d16e
Author: acton393 <zh...@...>
Date:   2018-01-09T10:17:10Z

    [WEEX-189][iOS] use recursive lock for thread safe collections

commit 5f6eb4e4a428d4a72b7284829bbd9798bcc22f0e
Author: acton393 <zh...@...>
Date:   2018-01-09T10:18:22Z

    * [iOS] cancel the default value

commit 114c5d3bd74cde2541f9b5e6ffb571ec51c95165
Author: acton393 <zh...@...>
Date:   2018-01-11T03:06:42Z

    * [iOS] use configCenter for lock

commit 2c591da8719f464d33681e6fdda8a21fc6b1230c
Author: acton393 <zh...@...>
Date:   2018-01-11T10:06:29Z

    [WEEX-189][iOS] use os_unfair_lock and pthread_mutex
    
    here show more details about performance of pthread_mutex and  os_unfair_lock
    https://gist.github.com/misbell/2dc38c47ff56f91c6775dde2be1fceb4
    
    Bug:189

----


> deadlock sometimes due to the thread-Safe dictionary
> ----------------------------------------------------
>
>                 Key: WEEX-189
>                 URL: https://issues.apache.org/jira/browse/WEEX-189
>             Project: Weex
>          Issue Type: Bug
>            Reporter: xingZhang
>            Assignee: xingZhang
>
> There is a case that it can be deadlock due to due to the thread-Safe dictionary,  as the dictionary use the dispatch_queue, so the object dealloc from the queue, there are some uncertain case.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)