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/08/26 07:12:46 UTC

[incubator-weex] branch feature/0.26.2.19-jit created (now 33940bd)

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

luckychen pushed a change to branch feature/0.26.2.19-jit
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git.


      at 33940bd  [Android] build fix

This branch includes the following new commits:

     new a608301  Revert "[Android] Android] restart weexCoreThread when reload JSEngine because thread maybe in lock state and can't execute reload action (block) (#2824)"
     new 01d720a  Merge branch 'bugfix/android_msgloop_crash' into release/20190814
     new 92982ee  [Android] Add `isJSFrameworkInit` before calling `nativeInvokeOnSuccess`
     new 582a945  Merge branch 'bugfix/android_msgloop_crash' into release/20190814
     new af772ae  add new TimeCalculator for defaultConstructor
     new a547aa5  Merge branch 'master' into release/20190814
     new 7028036  Merge branch 'master' into release/20190814
     new 3c6ba22  add pid and genId to ashmem
     new 724ea6a  [Android] update jsc for jit
     new 33940bd  [Android] build fix

The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-weex] 09/10: [Android] update jsc for jit

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 724ea6a0138a7ee324fc1065472f9ba7d052ee70
Author: chen <qh...@gmail.com>
AuthorDate: Fri Aug 23 11:09:11 2019 +0800

    [Android] update jsc for jit
---
 android/sdk/build.gradle                           |  20 ++++++++++----------
 android/sdk/libs/armeabi-v7a/libJavaScriptCore.so  | Bin 5237568 -> 8852700 bytes
 android/sdk/libs/armeabi-v7a/libWTF.so             | Bin 472828 -> 378920 bytes
 weex_core/Source/android/jsengine/CMakeLists.txt   |   7 +++++++
 weex_core/Source/js_runtime/CMakeLists.txt         |   6 ++++++
 .../Source/libs/armeabi-v7a/libJavaScriptCore.so   | Bin 5237308 -> 0 bytes
 weex_core/Source/libs/armeabi-v7a/libWTF.so        | Bin 472828 -> 0 bytes
 weex_core/Source/libs/armeabi/libJavaScriptCore.so | Bin 5237308 -> 0 bytes
 weex_core/Source/libs/armeabi/libWTF.so            | Bin 472828 -> 0 bytes
 9 files changed, 23 insertions(+), 10 deletions(-)

diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index e183968..1f2645f 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -130,17 +130,17 @@ android {
         versionCode 1
         versionName project.version
         ndk {
-            if(!project.hasProperty('supportArmeabi-v7a') || "false" != project.getProperty('supportArmeabi-v7a')){
+          //  if(!project.hasProperty('supportArmeabi-v7a') || "false" != project.getProperty('supportArmeabi-v7a')){
                 abiFilters 'armeabi-v7a'
-            }
-
-            if(!project.hasProperty('supportArm64-v8a') || "false" != project.getProperty('supportArm64-v8a')){
-                abiFilters 'arm64-v8a'
-            }
-
-            if(!project.hasProperty('supportX86') || "false" != project.getProperty('supportX86')){
-                abiFilters 'x86'
-            }
+            //}
+
+//            if(!project.hasProperty('supportArm64-v8a') || "false" != project.getProperty('supportArm64-v8a')){
+//                abiFilters 'arm64-v8a'
+//            }
+//
+//            if(!project.hasProperty('supportX86') || "false" != project.getProperty('supportX86')){
+//                abiFilters 'x86'
+//            }
         }
         externalNativeBuild {
             cmake {
diff --git a/android/sdk/libs/armeabi-v7a/libJavaScriptCore.so b/android/sdk/libs/armeabi-v7a/libJavaScriptCore.so
index d6b471c..2eaa2af 100755
Binary files a/android/sdk/libs/armeabi-v7a/libJavaScriptCore.so and b/android/sdk/libs/armeabi-v7a/libJavaScriptCore.so differ
diff --git a/android/sdk/libs/armeabi-v7a/libWTF.so b/android/sdk/libs/armeabi-v7a/libWTF.so
index 790bef2..6e91e81 100755
Binary files a/android/sdk/libs/armeabi-v7a/libWTF.so and b/android/sdk/libs/armeabi-v7a/libWTF.so differ
diff --git a/weex_core/Source/android/jsengine/CMakeLists.txt b/weex_core/Source/android/jsengine/CMakeLists.txt
index fd61378..8162f1a 100644
--- a/weex_core/Source/android/jsengine/CMakeLists.txt
+++ b/weex_core/Source/android/jsengine/CMakeLists.txt
@@ -27,6 +27,10 @@ add_definitions(-DPRINT_LOG_CACHEFILE=0)
 add_definitions(-DOS_ANDROID)
 #add_definitions(-DNDEBUG)
 add_definitions(-DUSE_SYSTEM_MALLOC=1)
+
+add_definitions(-DENABLE_JIT=1)
+add_definitions(-DENABLE_FTL_JIT=1)
+add_definitions(-DENABLE_DFG_JIT=1)
 if (${ANDROID_PLATFORM} STREQUAL "android-21")
 else ()
     add_definitions(-D_POSIX_THREAD_KEYS_MAX=128)                              
@@ -52,6 +56,9 @@ else ()
 endif ()
 
 set(USE_SYSTEM_MALLOC 1)
+set(ENABLE_JIT 1)
+set(ENABLE_FTL_JIT 1)
+set(ENABLE_DFG_JIT 1)
 set(WEEXJSSERVER_NAME weexjss)
 
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/weex_core/Source/js_runtime/CMakeLists.txt b/weex_core/Source/js_runtime/CMakeLists.txt
index 42bd160..bde108b 100644
--- a/weex_core/Source/js_runtime/CMakeLists.txt
+++ b/weex_core/Source/js_runtime/CMakeLists.txt
@@ -54,6 +54,9 @@ add_definitions(-DUSE_JS_RUNTIME=1)
 
 
 add_definitions(-DUSE_SYSTEM_MALLOC=1)
+add_definitions(-DENABLE_JIT=1)
+add_definitions(-DENABLE_FTL_JIT=1)
+add_definitions(-DENABLE_DFG_JIT=1)
 if (${ANDROID_PLATFORM} STREQUAL "android-21")
 else ()
     add_definitions(-D_POSIX_THREAD_KEYS_MAX=128)                              
@@ -79,6 +82,9 @@ else ()
 endif ()
 
 set(USE_SYSTEM_MALLOC 1)
+set(ENABLE_JIT 1)
+set(ENABLE_FTL_JIT 1)
+set(ENABLE_DFG_JIT 1)
 set(WEEXJSSERVER_NAME weexjss)
 
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/weex_core/Source/libs/armeabi-v7a/libJavaScriptCore.so b/weex_core/Source/libs/armeabi-v7a/libJavaScriptCore.so
deleted file mode 100755
index 2d59099..0000000
Binary files a/weex_core/Source/libs/armeabi-v7a/libJavaScriptCore.so and /dev/null differ
diff --git a/weex_core/Source/libs/armeabi-v7a/libWTF.so b/weex_core/Source/libs/armeabi-v7a/libWTF.so
deleted file mode 100755
index 790bef2..0000000
Binary files a/weex_core/Source/libs/armeabi-v7a/libWTF.so and /dev/null differ
diff --git a/weex_core/Source/libs/armeabi/libJavaScriptCore.so b/weex_core/Source/libs/armeabi/libJavaScriptCore.so
deleted file mode 100755
index 2d59099..0000000
Binary files a/weex_core/Source/libs/armeabi/libJavaScriptCore.so and /dev/null differ
diff --git a/weex_core/Source/libs/armeabi/libWTF.so b/weex_core/Source/libs/armeabi/libWTF.so
deleted file mode 100755
index 790bef2..0000000
Binary files a/weex_core/Source/libs/armeabi/libWTF.so and /dev/null differ


[incubator-weex] 07/10: Merge branch 'master' into release/20190814

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 702803625575ff5ec329984a694c25c1907607a5
Merge: a547aa5 5bce92c
Author: YorkShen <sh...@gmail.com>
AuthorDate: Mon Aug 19 16:17:05 2019 +0800

    Merge branch 'master' into release/20190814

 weex_core/Source/android/jsengine/object/weex_env.cpp              | 2 +-
 weex_core/Source/android/jsengine/task/back_to_weex_core_queue.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


[incubator-weex] 05/10: add new TimeCalculator for defaultConstructor

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit af772ae91eb3933586026c6c5a58bc2478e1bb35
Author: 东煜 <ya...@alibaba-inc.com>
AuthorDate: Fri Aug 16 17:44:33 2019 +0800

    add new TimeCalculator for defaultConstructor
---
 android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
index 23d4089..9e0f2dc 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
@@ -501,6 +501,7 @@ public class WXSDKInstance implements IWXActivityStateListener,View.OnLayoutChan
     mWXPerformance = new WXPerformance(mInstanceId);
     mApmForInstance = new WXInstanceApm(mInstanceId);
     WXSDKManager.getInstance().getAllInstanceMap().put(mInstanceId,this);
+    mTimeCalculator = new TimeCalculator(this);
   }
 
 
@@ -586,7 +587,9 @@ public class WXSDKInstance implements IWXActivityStateListener,View.OnLayoutChan
     // WXBridgeManager.getInstance().checkJsEngineMultiThread();
     mDisableSkipFrameworkInit = isDisableSkipFrameworkInDataRender();
 
-    mTimeCalculator = new TimeCalculator(this);
+    if(mTimeCalculator == null) {
+      mTimeCalculator = new TimeCalculator(this);
+    }
   }
 
   /**


[incubator-weex] 08/10: add pid and genId to ashmem

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3c6ba22914c2107b67e1fa38e4169c4d543e4d82
Author: 东煜 <ya...@alibaba-inc.com>
AuthorDate: Mon Aug 19 18:22:43 2019 +0800

    add pid and genId to ashmem
---
 .../Source/android/multiprocess/weex_js_connection.cpp | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/weex_core/Source/android/multiprocess/weex_js_connection.cpp b/weex_core/Source/android/multiprocess/weex_js_connection.cpp
index 11bd292..13dfb48 100644
--- a/weex_core/Source/android/multiprocess/weex_js_connection.cpp
+++ b/weex_core/Source/android/multiprocess/weex_js_connection.cpp
@@ -196,10 +196,16 @@ static void *newIPCServer(void *_td) {
     }
     return nullptr;
 }
-
+static int s_memId = 0;
 
 IPCSender *WeexJSConnection::start(IPCHandler *handler, IPCHandler *serverHandler, bool reinit) {
-  int fd = ashmem_create_region("WEEX_IPC_CLIENT", IPCFutexPageQueue::ipc_size);
+  pid_t pid = getpid();
+  int id = __sync_fetch_and_add(&s_memId, 1);
+  std::string clientName("WEEX_IPC_CLIENT-");
+  clientName += std::to_string(pid);
+  clientName += "-";
+  clientName += std::to_string(id);
+  int fd = ashmem_create_region(clientName.c_str(), IPCFutexPageQueue::ipc_size);
   if (-1 == fd) {
     throw IPCException("failed to create ashmem region: %s", strerror(errno));
   }
@@ -215,11 +221,15 @@ IPCSender *WeexJSConnection::start(IPCHandler *handler, IPCHandler *serverHandle
   std::unique_ptr<IPCSender> sender(createIPCSender(futexPageQueue.get(), handler));
   m_impl->serverSender = std::move(sender);
   m_impl->futexPageQueue = std::move(futexPageQueue);
-
-  int fd2 = ashmem_create_region("WEEX_IPC_SERVER", IPCFutexPageQueue::ipc_size);
+  std::string serverName("WEEX_IPC_SERVER-");
+  serverName += std::to_string(pid);
+  serverName += "-";
+  serverName += std::to_string(id);
+  int fd2 = ashmem_create_region(serverName.c_str(), IPCFutexPageQueue::ipc_size);
   if (-1 == fd2) {
     throw IPCException("failed to create ashmem region: %s", strerror(errno));
   }
+  LOGE("weex create Client's Name is %s Server's name is %s",clientName.c_str(), serverName.c_str());
   fd_server_closed = false;
   ThreadData td = { static_cast<int>(fd2), static_cast<IPCHandler *>(serverHandler) };
 


[incubator-weex] 02/10: Merge branch 'bugfix/android_msgloop_crash' into release/20190814

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 01d720a4923b97793ed457c0906521f46b2818d7
Merge: a608301 6b010a0
Author: YorkShen <sh...@gmail.com>
AuthorDate: Thu Aug 15 17:19:06 2019 +0800

    Merge branch 'bugfix/android_msgloop_crash' into release/20190814

 .../com/taobao/weex/bridge/RequestHandler.java     | 22 ++++++++++++++++------
 .../com/taobao/weex/bridge/WXBridgeManager.java    | 15 ++++++++-------
 weex_core/Source/core/bridge/eagle_bridge.cpp      |  7 ++++---
 3 files changed, 28 insertions(+), 16 deletions(-)



[incubator-weex] 06/10: Merge branch 'master' into release/20190814

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a547aa55cacf8a622b03067e9656675a255fd3a8
Merge: af772ae fc20444
Author: YorkShen <sh...@gmail.com>
AuthorDate: Mon Aug 19 14:39:41 2019 +0800

    Merge branch 'master' into release/20190814

 ios/sdk/WeexSDK/Sources/Bridge/WXCoreBridge.mm         | 16 ++++++++--------
 ios/sdk/WeexSDK/Sources/Component/WXEditComponent.mm   |  3 ++-
 ios/sdk/WeexSDK/Sources/Performance/WXApmForInstance.h |  1 +
 ios/sdk/WeexSDK/Sources/Performance/WXApmForInstance.m |  6 ++++++
 weex_core/Source/android/wrap/wx_bridge.cpp            |  5 ++++-
 5 files changed, 21 insertions(+), 10 deletions(-)


[incubator-weex] 10/10: [Android] build fix

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 33940bd504113c2736e811d9c9ee169cfe3c1e18
Author: chen <qh...@gmail.com>
AuthorDate: Mon Aug 26 15:12:13 2019 +0800

    [Android] build fix
---
 android/sdk/build.gradle | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 1f2645f..e183968 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -130,17 +130,17 @@ android {
         versionCode 1
         versionName project.version
         ndk {
-          //  if(!project.hasProperty('supportArmeabi-v7a') || "false" != project.getProperty('supportArmeabi-v7a')){
+            if(!project.hasProperty('supportArmeabi-v7a') || "false" != project.getProperty('supportArmeabi-v7a')){
                 abiFilters 'armeabi-v7a'
-            //}
-
-//            if(!project.hasProperty('supportArm64-v8a') || "false" != project.getProperty('supportArm64-v8a')){
-//                abiFilters 'arm64-v8a'
-//            }
-//
-//            if(!project.hasProperty('supportX86') || "false" != project.getProperty('supportX86')){
-//                abiFilters 'x86'
-//            }
+            }
+
+            if(!project.hasProperty('supportArm64-v8a') || "false" != project.getProperty('supportArm64-v8a')){
+                abiFilters 'arm64-v8a'
+            }
+
+            if(!project.hasProperty('supportX86') || "false" != project.getProperty('supportX86')){
+                abiFilters 'x86'
+            }
         }
         externalNativeBuild {
             cmake {


[incubator-weex] 03/10: [Android] Add `isJSFrameworkInit` before calling `nativeInvokeOnSuccess`

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 92982eea6224ccefe41a5682e8e845b11e486b71
Author: YorkShen <sh...@gmail.com>
AuthorDate: Thu Aug 15 17:59:07 2019 +0800

    [Android] Add `isJSFrameworkInit` before calling `nativeInvokeOnSuccess`
---
 .../main/java/com/taobao/weex/bridge/RequestHandler.java   | 14 ++++++++++++--
 .../main/java/com/taobao/weex/bridge/WXBridgeManager.java  |  5 ++++-
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/android/sdk/src/main/java/com/taobao/weex/bridge/RequestHandler.java b/android/sdk/src/main/java/com/taobao/weex/bridge/RequestHandler.java
index f8a505e..f49ba9c 100644
--- a/android/sdk/src/main/java/com/taobao/weex/bridge/RequestHandler.java
+++ b/android/sdk/src/main/java/com/taobao/weex/bridge/RequestHandler.java
@@ -102,7 +102,12 @@ public class RequestHandler {
     WXBridgeManager.getInstance().post(new Runnable() {
       @Override
       public void run() {
-        nativeInvokeOnSuccess(nativeCallback, content, bundleTypeStr);
+        if(WXBridgeManager.getInstance().isJSFrameworkInit()) {
+          nativeInvokeOnSuccess(nativeCallback, content, bundleTypeStr);
+        }
+        else {
+          nativeInvokeOnFailed(nativeCallback);
+        }
       }
     });
   }
@@ -132,7 +137,12 @@ public class RequestHandler {
         WXBridgeManager.getInstance().post(new Runnable() {
           @Override
           public void run() {
-            nativeInvokeOnSuccess(sNativeCallback, script, bundleTypeStr);
+            if(WXBridgeManager.getInstance().isJSFrameworkInit()) {
+              nativeInvokeOnSuccess(sNativeCallback, script, bundleTypeStr);
+            }
+            else{
+              nativeInvokeOnFailed(sNativeCallback);
+            }
           }
         });
     }
diff --git a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
index 9dafd92..8efa104 100755
--- a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
+++ b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
@@ -29,6 +29,8 @@ import android.os.Looper;
 import android.os.Message;
 import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
+import android.support.annotation.RestrictTo;
+import android.support.annotation.RestrictTo.Scope;
 import android.support.annotation.UiThread;
 import android.support.v4.util.ArrayMap;
 import android.text.TextUtils;
@@ -366,7 +368,8 @@ public class WXBridgeManager implements Callback, BactchExecutor {
 
   // setJSFrameworkInit and isJSFrameworkInit may use on diff thread
   // use volatile
-  private boolean isJSFrameworkInit() {
+  @RestrictTo(Scope.LIBRARY)
+  boolean isJSFrameworkInit() {
     return mInit;
   }
 


[incubator-weex] 04/10: Merge branch 'bugfix/android_msgloop_crash' into release/20190814

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 582a9452e14de3a1f0dcc9223d3560b7531ff441
Merge: 92982ee b9c23bf
Author: YorkShen <sh...@gmail.com>
AuthorDate: Thu Aug 15 18:16:51 2019 +0800

    Merge branch 'bugfix/android_msgloop_crash' into release/20190814

 android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java | 4 +++-
 weex_core/Source/core/network/android/default_request_handler.cc      | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)



[incubator-weex] 01/10: Revert "[Android] Android] restart weexCoreThread when reload JSEngine because thread maybe in lock state and can't execute reload action (block) (#2824)"

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a608301233d230da0bc3100f4c81ada4a87200ea
Author: chen <qh...@gmail.com>
AuthorDate: Thu Aug 15 11:32:16 2019 +0800

    Revert "[Android] Android] restart weexCoreThread when reload JSEngine because thread maybe in lock state and can't execute reload action (block) (#2824)"
    
    This reverts commit c72e6b5a833f66ed048042d1e4fb385aa61ed97c.
---
 .../java/com/taobao/weex/bridge/WXBridgeManager.java  | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
index 145730c..91aba2a 100755
--- a/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
+++ b/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java
@@ -867,14 +867,6 @@ public class WXBridgeManager implements Callback, BactchExecutor {
 
   }
 
-  public void restartWeexCoreThread(){
-      WXLogUtils.e("weex","restartWeexCoreThread");
-      WXThread oldThread = mJSThread;
-      mJSThread = new WXThread("WeexJSBridgeThread", this);
-      mJSHandler = mJSThread.getHandler();
-      oldThread.quit();
-  }
-
   public int callReportCrashReloadPage(String instanceId, String crashFile) {
     boolean isCrashFileEmpty = TextUtils.isEmpty(crashFile);
     try {
@@ -926,17 +918,6 @@ public class WXBridgeManager implements Callback, BactchExecutor {
       if (WXSDKManager.getInstance().getSDKInstance(instanceId) != null) {
         boolean reloadThisInstance = shouldReloadCurrentInstance(
                 WXSDKManager.getInstance().getSDKInstance(instanceId).getBundleUrl());
-        boolean restartCoreThread = true;
-        IWXConfigAdapter adapter = WXSDKManager.getInstance().getWxConfigAdapter();
-        if (null != adapter){
-            String config = adapter.getConfig("wxapm","restartCoreThread","true");
-            restartCoreThread = Boolean.valueOf(config);
-        }
-        if (restartCoreThread){
-              WXBridgeManager.getInstance().restartWeexCoreThread();
-        }
-        WXSDKManager.getInstance().getSDKInstance(instanceId).getContainerInfo()
-            .put("restartWeexCoreThread",String.valueOf(restartCoreThread));
         new ActionReloadPage(instanceId, reloadThisInstance).executeAction();
       }