re PR libgcj/14751 ([win32] thread creation leaks system handle resources)
authorMohan Embar <gnustuff@thisiscool.com>
Sat, 11 Sep 2004 19:13:51 +0000 (19:13 +0000)
committerMohan Embar <membar@gcc.gnu.org>
Sat, 11 Sep 2004 19:13:51 +0000 (19:13 +0000)
commita0be84dd8c0a461050ab96d8c563c9e9482e0107
treed727f36c523c4585200ec6eedd2eaf6e8968aede
parentbdbf6060ea5df98ab2a6cd4be0c99e347b65e737
re PR libgcj/14751 ([win32] thread creation leaks system handle resources)

PR libgcj/14751
* win32-threads.cc (_Jv_ThreadInitData): Zero out thread
handle in newly-allocated _Jv_Thread_t.
(_Jv_ThreadDestroyData): Close thread handle.
(_Jv_ThreadStart): Remove obsolete comment.
Store handle of newly-created thread in _Jv_Thread_t.
* include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
before including <windows.h>
#define _Jv_HaveCondDestroy

From-SVN: r87362
libjava/ChangeLog
libjava/include/win32-threads.h
libjava/win32-threads.cc