mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Terminate connection when memory limit is exceeded.
This commit is contained in:
parent
b64389ba15
commit
89f1fb4825
@ -2763,7 +2763,7 @@ void Worker::Exec()
|
|||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
if( m_shutdown.load( std::memory_order_relaxed ) )
|
if( m_shutdown.load( std::memory_order_relaxed ) || ( m_memoryLimit > 0 && memUsage.load( std::memory_order_relaxed ) > m_memoryLimit ) )
|
||||||
{
|
{
|
||||||
QueryTerminate();
|
QueryTerminate();
|
||||||
goto close;
|
goto close;
|
||||||
|
Loading…
Reference in New Issue
Block a user