Skip to content

Commit

Permalink
ios: set node project thread stack size to 2MB
Browse files Browse the repository at this point in the history
Increases the node thread stack size to 2MB when starting node
through startNodeProject.
  • Loading branch information
jaimecbernardo committed Nov 20, 2018
1 parent 5cb3e20 commit 082cbc0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ios/RNNodeJsMobile.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit 082cbc0

Please sign in to comment.