File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
native-xcode-node-folder/native-xcode-node-folder Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
32
32
selector: @selector (startNode )
33
33
object: nil
34
34
];
35
- // Set 1MB of stack space for the Node.js thread,
36
- // the same as the iOS application's main thread.
37
- [nodejsThread setStackSize: 1024 *1024 ];
35
+ // Set 2MB of stack space for the Node.js thread.
36
+ [nodejsThread setStackSize: 2 *1024 *1024 ];
38
37
[nodejsThread start ];
39
38
return YES ;
40
39
}
Original file line number Diff line number Diff line change @@ -175,15 +175,14 @@ Create a `startNode` selector and start the thread that runs the node project in
175
175
selector:@selector(startNode)
176
176
object:nil
177
177
];
178
- // Set 1MB of stack space for the Node.js thread,
179
- // the same as the iOS application's main thread.
180
- [nodejsThread setStackSize:1024*1024];
178
+ // Set 2MB of stack space for the Node.js thread.
179
+ [nodejsThread setStackSize:2*1024*1024];
181
180
[nodejsThread start];
182
181
return YES;
183
182
}
184
183
```
185
184
186
- > The iOS node runtime expects to have 1MB of stack space available.
185
+ > The iOS node runtime expects to have 1MB of stack space available. Having 2MB of stack space available is recommended.
187
186
188
187
### Run the Application
189
188
Original file line number Diff line number Diff line change @@ -37,9 +37,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
37
37
selector: @selector (startNode )
38
38
object: nil
39
39
];
40
- // Set 1MB of stack space for the Node.js thread,
41
- // the same as the iOS application's main thread.
42
- [nodejsThread setStackSize: 1024 *1024 ];
40
+ // Set 2MB of stack space for the Node.js thread.
41
+ [nodejsThread setStackSize: 2 *1024 *1024 ];
43
42
[nodejsThread start ];
44
43
return YES ;
45
44
}
You can’t perform that action at this time.
0 commit comments