You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by lu...@apache.org on 2019/09/04 07:29:55 UTC

[incubator-weex] branch master updated: fix crash if mmap failed (#2880)

This is an automated email from the ASF dual-hosted git repository.

luckychen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 440ae80  fix crash if mmap failed (#2880)
440ae80 is described below

commit 440ae80adc3850c0c92a570c928b0de315b9bd72
Author: darin <dy...@qq.com>
AuthorDate: Wed Sep 4 15:29:51 2019 +0800

    fix crash if mmap failed (#2880)
---
 weex_core/Source/android/multiprocess/weex_js_connection.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/weex_core/Source/android/multiprocess/weex_js_connection.cpp b/weex_core/Source/android/multiprocess/weex_js_connection.cpp
index e708d15..fb9ebcf 100644
--- a/weex_core/Source/android/multiprocess/weex_js_connection.cpp
+++ b/weex_core/Source/android/multiprocess/weex_js_connection.cpp
@@ -163,6 +163,7 @@ static void *newIPCServer(void *_td) {
         int _errno = errno;
         //throw IPCException("failed to map ashmem region: %s", strerror(_errno));
         newThreadStatus = ERROR;
+        base::android::DetachFromVM();
         return nullptr;
     }