react-native/ReactCommon/cxxreact
Marc Horowitz bdb084e8a8 Check for thread consistency in JSCRuntime
Summary:
In the version of JSC on iOS 11, creating a JSContext on one
thread and using it on another can trigger subtle and nearly
impossible to debug reentrancy-related crashes in the VM (see
https://bugs.webkit.org/show_bug.cgi?id=186827).  In !NDEBUG builds,
check for this case and throw an exception, so it can be detected
early.

Reviewed By: amnn

Differential Revision: D13313264

fbshipit-source-id: ee85435c20e23c8520495ce743d2f91f2eeada5c
2018-12-04 12:01:59 -08:00
..
tests Turn off static linking for cxxreact:bridge 2018-11-08 22:33:37 -08:00
Android.mk RN: Missing Copyright Headers 2018-10-31 01:37:26 -07:00
BUCK Turn off static linking for cxxreact:bridge 2018-11-08 22:33:37 -08:00
CxxModule.h Allow CxxModules to implement methods with two callbacks (#21586) 2018-11-13 19:52:40 -08:00
CxxNativeModule.cpp CxxReact: Silence 'unused lambda capture' warnings in open-source (#22240) 2018-11-16 10:37:16 -08:00
CxxNativeModule.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Instance.cpp Check for thread consistency in JSCRuntime 2018-12-04 12:01:59 -08:00
Instance.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSBigString.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSBigString.h JSBigString: Explicitly include unistd.h (#22330) 2018-11-28 16:42:42 -08:00
JSBundleType.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSBundleType.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSDeltaBundleClient.cpp DeltaClient: split DeltaBundle's modules into added and modified 2018-11-28 02:50:56 -08:00
JSDeltaBundleClient.h DeltaClient: split DeltaBundle's modules into added and modified 2018-11-28 02:50:56 -08:00
JSExecutor.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSExecutor.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSIndexedRAMBundle.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSIndexedRAMBundle.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JSModulesUnbundle.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JsArgumentHelpers-inl.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
JsArgumentHelpers.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
MessageQueueThread.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
MethodCall.cpp Remove dynamic exception specification in RN MethodCall.h/cpp 2018-11-14 21:16:29 -08:00
MethodCall.h Remove dynamic exception specification in RN MethodCall.h/cpp 2018-11-14 21:16:29 -08:00
ModuleRegistry.cpp nullptr -> folly::none in fbobjc/xplat 2018-11-14 10:57:02 -08:00
ModuleRegistry.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
NativeModule.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
NativeToJsBridge.cpp CxxReact: Silence 'unused lambda capture' warnings in open-source (#22240) 2018-11-16 10:37:16 -08:00
NativeToJsBridge.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RAMBundleRegistry.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RAMBundleRegistry.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ReactMarker.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ReactMarker.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RecoverableError.h Remove dynamic exception specification in RN MethodCall.h/cpp 2018-11-14 21:16:29 -08:00
SampleCxxModule.cpp Allow CxxModules to implement methods with two callbacks (#21586) 2018-11-13 19:52:40 -08:00
SampleCxxModule.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SharedProxyCxxModule.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SystraceSection.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00