From: Kai Tietz Date: Tue, 14 Oct 2014 16:58:37 +0000 (+0200) Subject: re PR libstdc++/57440 (Memory usage with future and std containers) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78bd42c42341f3ef984c585928baf7282c872885;p=gcc.git re PR libstdc++/57440 (Memory usage with future and std containers) 2014-10-14 Kai Tietz PR libstdc++/57440 * config/os/mingw32/os_defines.h (_GTHREAD_USE_MUTEX_INIT_FUNC): Define to avoid leak. * config/os/mingw32-w64/os_defines.h: Likewise. From-SVN: r216210 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 141a002a038..d7590a0cd6d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2014-10-14 Kai Tietz + + PR libstdc++/57440 + * config/os/mingw32/os_defines.h (_GTHREAD_USE_MUTEX_INIT_FUNC): + Define to avoid leak. + * config/os/mingw32-w64/os_defines.h: Likewise. + 2014-10-13 Jonathan Wakely PR libstdc++/57350 diff --git a/libstdc++-v3/config/os/mingw32-w64/os_defines.h b/libstdc++-v3/config/os/mingw32-w64/os_defines.h index 5e7aec8e458..b0211f3f15b 100644 --- a/libstdc++-v3/config/os/mingw32-w64/os_defines.h +++ b/libstdc++-v3/config/os/mingw32-w64/os_defines.h @@ -83,4 +83,7 @@ // their dtors are called #define _GLIBCXX_THREAD_ATEXIT_WIN32 1 +// See libstdc++/59807 +#define _GTHREAD_USE_MUTEX_INIT_FUNC 1 + #endif diff --git a/libstdc++-v3/config/os/mingw32/os_defines.h b/libstdc++-v3/config/os/mingw32/os_defines.h index a48c976a0f3..8e1fd51877f 100644 --- a/libstdc++-v3/config/os/mingw32/os_defines.h +++ b/libstdc++-v3/config/os/mingw32/os_defines.h @@ -75,4 +75,7 @@ #define _GLIBCXX_LLP64 1 #endif +// See libstdc++/59807 +#define _GTHREAD_USE_MUTEX_INIT_FUNC 1 + #endif