Uploaded image for project: '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
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: Scala 2.10.0-M3
    • Component/s: None
    • 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
      

        Attachments

          Activity

          Hide
          extempore Paul Phillips added a comment -

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

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

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: