Skip to content

Commit 7e412e0

Browse files
blinoScony
authored andcommitted
[GTK][WPE] Fix crash at exit when monitor is disabled with MALLOC_HEAP_BREAKDOWN
https://bugs.webkit.org/show_bug.cgi?id=300885 Reviewed by Michael Catanzaro. If the monitor thread has not been started, do not try to join it. * Source/WTF/wtf/malloc_heap_breakdown/main.cpp: (MallocZoneHeapManager::~MallocZoneHeapManager): Canonical link: https://commits.webkit.org/301695@main
1 parent 427e589 commit 7e412e0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Source/WTF/wtf/malloc_heap_breakdown

‎Source/WTF/wtf/malloc_heap_breakdown/main.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ class MallocZoneHeapManager {
130130
~MallocZoneHeapManager()
131131
{
132132
m_forceThreadExit = true;
133-
m_monitorThread->join();
133+
if (m_monitorThread)
134+
m_monitorThread->join();
134135
}
135136

136137
void monitoringThreadMain()

0 commit comments

Comments
 (0)