>>>>> "Anthony" == Anthony Green <[EMAIL PROTECTED]> writes:

Anthony> 2004-02-24  Anthony Green  <[EMAIL PROTECTED]>
Anthony> * java/lang/StringBuffer.java: No need to NULL out remainder of
Anthony> buffer since ensureCapacity_unsynchronized will have done this for
Anthony> us.

I think the loop is still needed for the case where you resize the
StringBuffer but the underlying array is not resized.  For instance,
you might fill in the buffer, shrink it, then regrow it.  In this
case, don't we need the newly visible slots to be \0 instead of
whatever appeared in them earlier?

It is an unusual situation though.  We could test for it and only zero
parts in the case where it is needed.

Tom


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to