Skip to content

Commit

Permalink
ios: increase node's thread stack size to 1MB
Browse files Browse the repository at this point in the history
Increases the stack size of the thread running the Node.js code to
1MB, to have the same stack size as the application's main thread.
  • Loading branch information
jaimecbernardo committed Feb 28, 2018
1 parent a4f2984 commit 7ac8dd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ios/NodeJSRunner.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ + (void) startEngineWithArguments:(NSArray*)arguments; {
object:nil
];

// Set 1MB of stack space for the Node.js thread,
// the same as the iOS application's main thread.
[nodejsThread setStackSize:1024*1024];

[nodejsThread start];
}

Expand Down

0 comments on commit 7ac8dd9

Please sign in to comment.