Skip to content

Commit bbc1af6

Browse files
ayc1facebook-github-bot
authored andcommitted
Give a name to the ReactContext thread
Summary: tired of looking around for this thread. named it "create_react_context" Differential Revision: D9664714 fbshipit-source-id: 8839b5724fe2516fc46de3dd40971c52a5a8168f
1 parent 241e74d commit bbc1af6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ private void runCreateReactContextOnNewThread(final ReactContextInitParams initP
905905

906906
mCreateReactContextThread =
907907
new Thread(
908+
null,
908909
new Runnable() {
909910
@Override
910911
public void run() {
@@ -958,7 +959,8 @@ public void run() {
958959
mDevSupportManager.handleException(e);
959960
}
960961
}
961-
});
962+
},
963+
"create_react_context");
962964
ReactMarker.logMarker(REACT_CONTEXT_THREAD_START);
963965
mCreateReactContextThread.start();
964966
}

0 commit comments

Comments
 (0)