diff options
author | Ranjit Mathew <rmathew@gcc.gnu.org> | 2006-07-05 02:15:51 +0000 |
---|---|---|
committer | Ranjit Mathew <rmathew@gcc.gnu.org> | 2006-07-05 02:15:51 +0000 |
commit | 5a1218970f65f132de4d0ddc77a5d68768d19424 (patch) | |
tree | 0a98e27f40c056a0c593499932dea332859cbd04 /libjava/win32.cc | |
parent | d2ab4cf72b60d8a81aea2a7e09e1b06a04a5c402 (diff) | |
download | gcc-5a1218970f65f132de4d0ddc77a5d68768d19424.zip gcc-5a1218970f65f132de4d0ddc77a5d68768d19424.tar.gz gcc-5a1218970f65f132de4d0ddc77a5d68768d19424.tar.bz2 |
libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for startfile.
* libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for
startfile.
* configure.ac: Allow targets to affect the spec for startfile
by specifying a THREADSTARTFILESPEC variable. Define this for
the win32 threads package to include crtmt.o.
* configure: Regenerate.
* win32.cc (_CRT_MT): Remove definition.
(__mingwthr_key_dtor): Likewise.
Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net>
From-SVN: r115196
Diffstat (limited to 'libjava/win32.cc')
-rw-r--r-- | libjava/win32.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libjava/win32.cc b/libjava/win32.cc index 00b4279..6a1c2c7 100644 --- a/libjava/win32.cc +++ b/libjava/win32.cc @@ -288,21 +288,6 @@ _Jv_platform_nanotime () return _Jv_platform_gettimeofday () * 1000LL; } -// The following definitions "fake out" mingw to think that -mthreads -// was enabled and that mingwthr.dll was linked. GCJ-compiled -// applications don't need this helper library because we can safely -// detect thread death (return from Thread.run()). - -int _CRT_MT = 1; - -extern "C" int -__mingwthr_key_dtor (DWORD, void (*) (void *)) -{ - // FIXME: for now we do nothing; this causes a memory leak of - // approximately 24 bytes per thread created. - return 0; -} - static bool dirExists (LPCTSTR dir) { DWORD dwAttrs = ::GetFileAttributes (dir); |