mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed stack overflow, optimized DetectLoops
This commit is contained in:
parent
e2428a11a3
commit
7a27ab75bf
5 changed files with 122 additions and 36 deletions
|
@ -1915,9 +1915,9 @@ void BFGC::Start()
|
|||
#ifdef BF_DEBUG
|
||||
// More stack space is needed in debug version
|
||||
//::CreateThread(NULL, 64*1024, (LPTHREAD_START_ROUTINE)&RunStub, (void*)this, 0, (DWORD*)&mThreadId);
|
||||
mGCThread = BfpThread_Create(RunStub, (void*)this, 256*1024, BfpThreadCreateFlag_Suspended, &mThreadId);
|
||||
mGCThread = BfpThread_Create(RunStub, (void*)this, 256*1024, (BfpThreadCreateFlags)(BfpThreadCreateFlag_Suspended | BfpThreadCreateFlag_StackSizeReserve), &mThreadId);
|
||||
#else
|
||||
mGCThread = BfpThread_Create(RunStub, (void*)this, 64 * 1024, BfpThreadCreateFlag_Suspended, &mThreadId);
|
||||
mGCThread = BfpThread_Create(RunStub, (void*)this, 64 * 1024, (BfpThreadCreateFlags)(BfpThreadCreateFlag_Suspended | BfpThreadCreateFlag_StackSizeReserve), &mThreadId);
|
||||
#endif
|
||||
|
||||
BfpThread_Resume(mGCThread, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue