This is the mail archive of the java@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: Non-synchronized StringBuffer



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


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