This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: natFile -vs- stack
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: tromey at redhat dot com
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Fri, 08 Feb 2002 14:12:38 +1300
- Subject: Re: Patch: FYI: natFile -vs- stack
- References: <87eljx5bq2.fsf@creche.redhat.com>
Tom Tromey wrote:
>I'm checking this in.
>
>This changes natFile.cc so that it doesn't stack allocate any buffers,
>and so that the buffers it allocates are the right size. It also
>removes a global which I think isn't really needed.
>
I think its very unfortunate (for performance) to be allocating on every
stat() call etc. Is there no other way to fix this? How about
__builtin_alloca() ?
regards
Bryce.