OSDN Git Service

* dll_init.h (has_dtors): New flag.
authorcgf <cgf>
Fri, 21 Aug 2009 21:32:05 +0000 (21:32 +0000)
committercgf <cgf>
Fri, 21 Aug 2009 21:32:05 +0000 (21:32 +0000)
commit92cf8cf4bf01eaf40a3a5d1a3bb007d1262fc6d9
treefaaea75fec2cc1762ebd0b9fb0332754487ed80e
parent59f4cf6d84e98f1faac6daa92280849bd8d5609c
* dll_init.h (has_dtors): New flag.
(run_dtors): New wrapper function which avoids calling dtors more than once.
* dll_init.cc (dll_global_dtors): Use dll.run_dtors wrapper.
(dll_list::detach): Ditto.
(dll_list::alloc): Set has_dtors flag.
winsup/cygwin/ChangeLog
winsup/cygwin/dll_init.cc
winsup/cygwin/dll_init.h