Initialize rpmalloc properly in symbol worker.

This commit is contained in:
Bartosz Taudul 2022-10-12 23:51:50 +02:00
parent 4416dff342
commit 9657bdec72
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3264,7 +3264,7 @@ void Profiler::SymbolWorker()
ThreadExitHandler threadExitHandler; ThreadExitHandler threadExitHandler;
SetThreadName( "Tracy Symbol Worker" ); SetThreadName( "Tracy Symbol Worker" );
#ifdef TRACY_USE_RPMALLOC #ifdef TRACY_USE_RPMALLOC
rpmalloc_thread_initialize(); InitRpmalloc();
#endif #endif
InitCallstack(); InitCallstack();
while( m_timeBegin.load( std::memory_order_relaxed ) == 0 ) std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) ); while( m_timeBegin.load( std::memory_order_relaxed ) == 0 ) std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );