From 082cbc0d4815d435a8c06cd34bea4c0a6d573dec Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Tue, 20 Nov 2018 23:31:43 +0000 Subject: [PATCH] ios: set node project thread stack size to 2MB Increases the node thread stack size to 2MB when starting node through startNodeProject. --- ios/RNNodeJsMobile.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ios/RNNodeJsMobile.m b/ios/RNNodeJsMobile.m index 84b329b..00f11ef 100644 --- a/ios/RNNodeJsMobile.m +++ b/ios/RNNodeJsMobile.m @@ -130,9 +130,8 @@ -(void)callStartNodeProject:(NSString *)mainFileName selector:@selector(callStartNodeProject:) object:mainFileName ]; - // Set 1MB of stack space for the Node.js thread, - // the same as the iOS application's main thread. - [nodejsThread setStackSize:1024*1024]; + // Set 2MB of stack space for the Node.js thread. + [nodejsThread setStackSize:2*1024*1024]; [nodejsThread start]; } }