archibate / mallocvis

allocation visualization in svg graph
120 stars 16 forks source link

std::thread析构释放的内存没有捕获到,误报内存泄漏 #2

Closed 511844767 closed 2 months ago

511844767 commented 2 months ago

如下一段程序

#include <iostream>
#include <thread>
#include <chrono>
int main(){
    auto t1 = std::thread([]{
        std::cout << "Hello\n";
    });
    t1.join();
}

输出的malloc.html有内存泄漏 image

archibate commented 2 months ago

pull一下吧,现在多线程应该没有问题了。 图片

511844767 commented 2 months ago

破案了,这是wsl的bug