mingw-w64-libraries/winpthread/src/spinlock.c:66 int initrv = pthread_spin_init (lock, PTHREAD_PROCESS_PRIVATE);
There is no corresponding pthread_spin_destroy() for this lock, hence its memory leaks. ------------------ Best regards, lh_mouse 2014-09-28 ------------------------------------------------------------- 发件人:niXman <i.nix...@autistici.org> 发送日期:2014-09-28 14:27 收件人:mingw-w64-public 抄送: 主题:Re: [Mingw-w64-public] std::thread and memory leaks The simplified version of the test looks like this: #include <pthread.h> #include <stdio.h> void* tmp_thr(void *p) { printf("%d\n", *(int*)p); } int main() { int j; for(j=0;j<800000;j++) { pthread_t t; pthread_create(&t, NULL, tmp_thr, &j); pthread_join(t, NULL); } } ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public