diff options
author | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-05 02:15:51 +0000 |
---|---|---|
committer | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-05 02:15:51 +0000 |
commit | 621f785f3df099453294bb6ea97b9896ff45e77c (patch) | |
tree | 0a98e27f40c056a0c593499932dea332859cbd04 /libjava/win32.cc | |
parent | d03ad30f9009d648232ad5db3fe7f9a66d9e881f (diff) | |
download | gcc-621f785f3df099453294bb6ea97b9896ff45e77c.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115196 138bc75d-0d04-0410-961f-82ee72b054a4
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 00b42796ce4..6a1c2c736de 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); |