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]

Re: Patch: FYI: natFile -vs- stack


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.



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