in RCT_DEBUG mode, make the js stack bigger

Reviewed By: javache

Differential Revision: D5459755

fbshipit-source-id: 169cb542c92ea6d5e438c4bbe35879e7a097a3aa
This commit is contained in:
Marc Horowitz 2017-07-20 12:11:57 -07:00 committed by Facebook Github Bot
parent f32627f890
commit 2334899dfe
1 changed files with 3 additions and 0 deletions

View File

@ -270,6 +270,9 @@ struct RCTInstanceCallback : public InstanceCallback {
object:nil];
_jsThread.name = RCTJSThreadName;
_jsThread.qualityOfService = NSOperationQualityOfServiceUserInteractive;
#if RCT_DEBUG
_jsThread.stackSize *= 2;
#endif
[_jsThread start];
dispatch_group_t prepareBridge = dispatch_group_create();