1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed stack overflow, optimized DetectLoops

This commit is contained in:
Brian Fiete 2019-10-18 09:13:37 -07:00
parent e2428a11a3
commit 7a27ab75bf
5 changed files with 122 additions and 36 deletions

View file

@ -32,7 +32,7 @@
//#define MAX_THREADS 6
//#define BF_USE_CODEGEN_RELEASE_THUNK
#else
#define MAX_THREADS 6
//#define MAX_THREADS 6
//#define MAX_THREADS 8
//#define MAX_THREADS 1
#endif
@ -585,7 +585,7 @@ void BfCodeGenThread::Start()
{
mRunning = true;
//TODO: How much mem do we need? WTF- we have 32MB set before!
auto mThread = BfpThread_Create(RunLoopThunk, (void*)this, 1024 * 1024);
auto mThread = BfpThread_Create(RunLoopThunk, (void*)this, 1024 * 1024, BfpThreadCreateFlag_StackSizeReserve);
BfpThread_SetPriority(mThread, BfpThreadPriority_Low, NULL);
BfpThread_Release(mThread);
}