mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Ignore memory free faults if running on apple.
There's a case in MoltenVK initialization where overloading operator new and operator delete works for std::string destruction, but not construction.
This commit is contained in:
parent
ab4e99229d
commit
31a4a45b14
@ -1831,6 +1831,7 @@ void Worker::Exec()
|
||||
m_onDemand = welcome.onDemand;
|
||||
m_captureProgram = welcome.programName;
|
||||
m_captureTime = welcome.epoch;
|
||||
m_ignoreMemFreeFaults = welcome.onDemand || welcome.isApple;
|
||||
|
||||
char dtmp[64];
|
||||
time_t date = welcome.epoch;
|
||||
@ -3513,7 +3514,7 @@ bool Worker::ProcessMemFree( const QueueMemFree& ev )
|
||||
auto it = m_data.memory.active.find( ev.ptr );
|
||||
if( it == m_data.memory.active.end() )
|
||||
{
|
||||
if( !m_onDemand )
|
||||
if( !m_ignoreMemFreeFaults )
|
||||
{
|
||||
MemFreeFailure( ev.thread );
|
||||
}
|
||||
|
@ -498,6 +498,7 @@ private:
|
||||
char* m_buffer;
|
||||
int m_bufferOffset;
|
||||
bool m_onDemand;
|
||||
bool m_ignoreMemFreeFaults;
|
||||
|
||||
GpuCtxData* m_gpuCtxMap[256];
|
||||
flat_hash_map<uint64_t, StringLocation, nohash<uint64_t>> m_pendingCustomStrings;
|
||||
|
Loading…
Reference in New Issue
Block a user