This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI Patch: Fix memory leak PR 12475


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.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]