Scala Programming Language
  1. Scala Programming Language
  2. SI-5867

UnrolledBuffer crashes with OutOfMemoryError when using ++ with a non-tiny amount of elements

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: Scala 2.10.0-M3
    • Component/s: Collections
    • Environment:

      Scala version 2.10.0-20120530-022829-8d38079ab4 (OpenJDK 64-Bit Server VM, Java 1.7.0_03).

      Description

      import collection.mutable.UnrolledBuffer
      
      val buf = UnrolledBuffer(1 to 50: _*)
      buf ++ buf
      
      Exception in thread "main" 
      Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
      /home/soc/Entwicklung/lib/scala-current/bin/scala  33,13s user 0,64s system 85% cpu 39,496 total
      

        Activity

        Hide
        Paul Phillips added a comment -

        It is likely to be a variation on SI-3088.

        Show
        Paul Phillips added a comment - It is likely to be a variation on SI-3088 .
        Hide
        Simon Ochsenreither added a comment -

        Mhh, not sure. The thing is, that it works with a smaller amount of elements just fine.

        Show
        Simon Ochsenreither added a comment - Mhh, not sure. The thing is, that it works with a smaller amount of elements just fine.

          People

          • Assignee:
            Aleksandar Prokopec
            Reporter:
            Simon Ochsenreither
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development