Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OutOfMemoryError (0.22 sec)

  1. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
        // OutOfMemoryError is not far behind
        final int len = string.length();
        final int size = len * count;
        char[] array = new char[size];
        for (int i = 0; i < size; i += len) {
          string.getChars(0, len, array, i);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
        // OutOfMemoryError is not far behind
        final int len = string.length();
        final int size = len * count;
        char[] array = new char[size];
        for (int i = 0; i < size; i += len) {
          string.getChars(0, len, array, i);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
Back to top