This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Non-synchronized StringBuffer
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: Java Discuss List <java at gcc dot gnu dot org>
- Date: 25 Nov 2001 12:18:08 -0800
- Subject: Re: Non-synchronized StringBuffer
- Organization: Myself
- References: <87itc0dehz.fsf@creche.redhat.com>
Tom Tromey <tromey@redhat.com> writes:
> I didn't try stack-allocating the StringBuffer object itself. This is
> possible, but it was more work than I was willing to do tonight.
I'm curious -- will gcj stack-allocate an object whose lifetime is
obviously no longer than that of the function allocating it? (ie no
references to the object are passed to other functions, nor are any
returned)?
- a