public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/28263] New: [win32] Memory Leak In Cleaning Exception Handling Contexts
@ 2006-07-05 2:03 rmathew at gcc dot gnu dot org
2009-09-03 9:24 ` [Bug libgcj/28263] " ktietz at gcc dot gnu dot org
2010-05-23 7:21 ` ktietz at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2006-07-05 2:03 UTC (permalink / raw)
To: java-prs
There is a leak of 24 bytes of exception handling context per Java thread on
MinGW due to a hack that fools the MinGW runtime into thinking that
multi-threaded exception handling is in effect but avoids linking to the
correct __mingwthr_key_dtor() from mingwm10.dll and instead links to a dummy
version from libmingw32.a.
See also:
http://gcc.gnu.org/ml/java/2003-04/msg00046.html
http://gcc.gnu.org/ml/java/2006-07/msg00014.html
http://gcc.gnu.org/ml/java/2006-07/msg00017.html
A workaround for avoiding this leak is to explicitly use -mthreads while
linking Java programmes with GCJ.
--
Summary: [win32] Memory Leak In Cleaning Exception Handling
Contexts
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rmathew at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28263
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcj/28263] [win32] Memory Leak In Cleaning Exception Handling Contexts
2006-07-05 2:03 [Bug libgcj/28263] New: [win32] Memory Leak In Cleaning Exception Handling Contexts rmathew at gcc dot gnu dot org
@ 2009-09-03 9:24 ` ktietz at gcc dot gnu dot org
2010-05-23 7:21 ` ktietz at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-09-03 9:24 UTC (permalink / raw)
To: java-prs
------- Comment #1 from ktietz at gcc dot gnu dot org 2009-09-03 09:24 -------
This issue is solved for mingw-w64 runtime. It uses no more the mingwm10.dll
mechanism. Instead it uses TLS callbacks to implement it. By this reason the
Cleaning of Exception Contexts is always present for this runtime. Maybe
mingw.org's runtime will support TLS callbacks sometimes, too.
This bug remains for Windows OSes without TLS callback support, and for those
the -mthreads build-option can solve the issue.
--
ktietz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28263
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcj/28263] [win32] Memory Leak In Cleaning Exception Handling Contexts
2006-07-05 2:03 [Bug libgcj/28263] New: [win32] Memory Leak In Cleaning Exception Handling Contexts rmathew at gcc dot gnu dot org
2009-09-03 9:24 ` [Bug libgcj/28263] " ktietz at gcc dot gnu dot org
@ 2010-05-23 7:21 ` ktietz at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2010-05-23 7:21 UTC (permalink / raw)
To: java-prs
------- Comment #2 from ktietz at gcc dot gnu dot org 2010-05-23 07:21 -------
(In reply to comment #1)
> This issue is solved for mingw-w64 runtime. It uses no more the mingwm10.dll
> mechanism. Instead it uses TLS callbacks to implement it. By this reason the
> Cleaning of Exception Contexts is always present for this runtime. Maybe
> mingw.org's runtime will support TLS callbacks sometimes, too.
> This bug remains for Windows OSes without TLS callback support, and for those
> the -mthreads build-option can solve the issue.
>
The mechanism of TLS callback is now present for mingw.org's runtime too. Even
the use of mingwm10.dll for OSes (like 9x/Me) is solved. Additional it isn't
anymore of importance to link by -mthread option. The cleaning up is effective
now anyway.
So I close this bug as invalid, as the solution isn't part of gcc itself.
--
ktietz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28263
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-23 7:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 2:03 [Bug libgcj/28263] New: [win32] Memory Leak In Cleaning Exception Handling Contexts rmathew at gcc dot gnu dot org
2009-09-03 9:24 ` [Bug libgcj/28263] " ktietz at gcc dot gnu dot org
2010-05-23 7:21 ` ktietz at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).