• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • DSO:L1
  • teck
  • Reporter: teck
  • January 16, 2007
  • 0
  • Watchers: 0
  • July 27, 2012
  • February 13, 2007


StringBuilder.toString() (and probably other critical places) use the (char[], int, int) constructor of String. In 1.6, this string constructor uses a new method (Arrays.copyOfRange()) which ends up calling on the DSO ArrayManager.

The copyOfRange() methods in java.util.Arrays cannot ever be operating on a “shared” destination array when they call System.arraycopy() and thus do not need to go through ArrayManager.

A new test should be added for StringBuilder, much like com.tctest.StringBufferTest. At least one of the test methods should execute toString() in a loop to measure a speedup


Fiona OShea 2007-02-07

Updating Due date to last day of Moraga dev iteration