This is the mail archive of the
mailing list for the Java project.
FYI Patch: Fix memory leak PR 12475
- From: Andrew Haley <aph at redhat dot com>
- To: Bryce McKinlay <bryce at mckinlay dot net dot nz>
- Cc: java-patches at gcc dot gnu dot org
- Date: Thu, 2 Oct 2003 11:01:52 +0100
- Subject: FYI Patch: Fix memory leak PR 12475
- References: <ECDD7110-F4A7-11D7-830D-003065F97F7C@mckinlay.net.nz>
Bryce McKinlay writes:
> This is a temporary hack to fix PR 12475. Eventually I plan to
> re-factor the stack trace stuff and get rid of the malloc.
There are a few issues to think about. Firstly, it would be very nice
to do away with the dependency on external programs altogether, but as
has been discussed here we'd lose line numbers in stack traces.
Alternative implementations, perhaps.
Secondly, the stack trace code has been refactored a couple of times
already, each time rotting a bit more.
Thirdly, the factoring of stack traces is already weird because of
Classpath compatibility requirements.
Fourthly, there are some very tricky security issues. In particular,
access to raw stack traces needs to be restricted to a few places. I
intend to do this by carefully using native code and friend access.
Fifthly, there are some tricky efficiency requirements.
That's why I haven't done anything yet.