mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-05 15:56:00 +02:00
Working on installer, fixing more Win32 issues
Throwing error on member references with ".." cascade token outside invocations (ie: "ts..mA = 123") Fixed 'Thread.ModuleTLSIndex' error - which caused us TLS lookup failures in Beef DLLs Fixed some hotswap errors Made BeefPerf shut down properly Fixed an 'int literal' FixIntUnknown issue where rhs was System.Object which caused an illegal boxing Fixed COFF::LocateSymbol issues with Win32 and also with linking to static libraries - showed up with hot-linking in fmod when hot-adding a floating point mod Fixed a couple memory leaks Fixed alignment issue in COFF::ParseCompileUnit
This commit is contained in:
parent
aad0a640c5
commit
b63a243fd7
73 changed files with 2474 additions and 293 deletions
|
@ -589,6 +589,7 @@ BFGC::BFGC()
|
|||
mForceDecommit = false;
|
||||
mLastCollectFrame = 0;
|
||||
mSkipMark = false;
|
||||
mGracelessShutdown = false;
|
||||
mMainThreadTLSPtr = NULL;
|
||||
|
||||
mCollectIdx = 0;
|
||||
|
@ -1933,6 +1934,14 @@ void BFGC::StopCollecting()
|
|||
mExiting = true;
|
||||
while (mRunning)
|
||||
{
|
||||
if (BfpThread_WaitFor(mGCThread, 0))
|
||||
{
|
||||
OutputDebugStr("BeefDbgRT not shut down gracefully!\n");
|
||||
mGracelessShutdown = true;
|
||||
mRunning = false;
|
||||
break;
|
||||
}
|
||||
|
||||
//BFRtLock bfLock(mEphemeronTombstone);
|
||||
mWaitingForGC = true;
|
||||
// Wait for current collection to finish
|
||||
|
@ -1970,6 +1979,9 @@ void BFGC::Shutdown()
|
|||
|
||||
Beefy::AutoCrit autoCrit(mCritSect);
|
||||
|
||||
if (mGracelessShutdown)
|
||||
return;
|
||||
|
||||
// Report any objects that aren't deleted
|
||||
mSweepInfo.mShowAllAsLeaks = true;
|
||||
Sweep();
|
||||
|
@ -2269,7 +2281,7 @@ void BFGC::ResumeThreads()
|
|||
void BFGC::PerformCollection()
|
||||
{
|
||||
BP_ZONE("TriggerCollection");
|
||||
|
||||
|
||||
DWORD startTick = BFTickCount();
|
||||
CollectReport collectReport;
|
||||
collectReport.mCollectIdx = mCollectIdx;
|
||||
|
|
|
@ -267,6 +267,7 @@ public:
|
|||
|
||||
volatile bool mExiting;
|
||||
volatile bool mRunning;
|
||||
bool mGracelessShutdown;
|
||||
bool mPaused;
|
||||
bool mShutdown;
|
||||
bool mWaitingForGC; // GC.Collect sets this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue