On Mon, Oct 1, 2012 at 2:22 PM, Jim Gish <jim.g...@oracle.com> wrote:

> Alan & Chris,
>
> However, let me propose something else.  How about /all /the methods in
> StringBuffer be synchronized?  Although this is not strictly necessary, it
> works because reentrant synchronization is allowed.


Reentrant lock acquisition is not free.  In core libraries like
StringBuffer we should prefer the lesser evil of code duplication to the
loss of performance.

Reply via email to