summaryrefslogtreecommitdiff
path: root/test/files/scalacheck/parallel-collections/pc.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-7938 - parallel collections should use default ExecutionContextAleksandar Prokopec2013-10-291-24/+41
| | | | | | | | | | Parallel collections now use `scala.concurrent.ExecutionContext` by default. The `ExecutionContextTaskSupport` is optimized to use the `ForkJoinPool` underlying the `ExecutionContext` if possible. Otherwise, a fallback `TaskSupport` that creates a reduction tree and execute an operation through `Future`s is used.
* Cull extraneous whitespace.Paul Phillips2013-09-181-8/+8
| | | | | | | | | | | | | | | | | | | | | One last flurry with the broom before I leave you slobs to code in your own filth. Eliminated all the trailing whitespace I could manage, with special prejudice reserved for the test cases which depended on the preservation of trailing whitespace. Was reminded I cannot figure out how to eliminate the trailing space on the "scala> " prompt in repl transcripts. At least reduced the number of such empty prompts by trimming transcript code on the way in. Routed ConsoleReporter's "printMessage" through a trailing whitespace stripping method which might help futureproof against the future of whitespace diseases. Deleted the up-to-40 lines of trailing whitespace found in various library files. It seems like only yesterday we performed whitespace surgery on the whole repo. Clearly it doesn't stick very well. I suggest it would work better to enforce a few requirements on the way in.
* SI-7349 Partest supports test-interfaceSom Snytt2013-04-301-7/+7
| | | | | | | | Partest uses test-interface API to invoke ScalaCheck. This obviates ad hoc output checking for result status. The context class loader is set to a loader that the scaladoc scalacheck tests can use.
* Renaming Ctrie to ConcurrentTrieMap.Aleksandar Prokopec2012-03-161-1/+1
|
* Add tests for parallel Ctrie.Aleksandar Prokopec2012-02-031-0/+3
| | | | Changed parameters in some tests to speed them up.
* Begone t1737...Hubert Plociniczak2011-11-021-7/+7
|
* Refactoring the collections api to support diff...Aleksandar Pokopec2011-04-131-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring the collections api to support differentiation between referring to a sequential collection and a parallel collection, and to support referring to both types of collections. New set of traits Gen* are now superclasses of both their * and Par* subclasses. For example, GenIterable is a superclass of both Iterable and ParIterable. Iterable and ParIterable are not in a subclassing relation. The new class hierarchy is illustrated below (simplified, not all relations and classes are shown): TraversableOnce --> GenTraversableOnce ^ ^ | | Traversable --> GenTraversable ^ ^ | | Iterable --> GenIterable <-- ParIterable ^ ^ ^ | | | Seq --> GenSeq <-- ParSeq (the *Like, *View and *ViewLike traits have a similar hierarchy) General views extract common view functionality from parallel and sequential collections. This design also allows for more flexible extensions to the collections framework. It also allows slowly factoring out common functionality up into Gen* traits. From now on, it is possible to write this: import collection._ val p = parallel.ParSeq(1, 2, 3) val g: GenSeq[Int] = p // meaning a General Sequence val s = g.seq // type of s is Seq[Int] for (elem <- g) { // do something without guarantees on sequentiality of foreach // this foreach may be executed in parallel } for (elem <- s) { // do something with a guarantee that foreach is executed in order, sequentially } for (elem <- p) { // do something concurrently, in parallel } This also means that some signatures had to be changed. For example, method `flatMap` now takes `A => GenTraversableOnce[B]`, and `zip` takes a `GenIterable[B]`. Also, there are mutable & immutable Gen* trait variants. They have generic companion functionality.
* Enabled parallel group by.Aleksandar Pokopec2011-01-101-1/+1
| | | | | No review.
* Implemented a (slower) workaround for parallel ...Aleksandar Pokopec2011-01-071-0/+1
| | | | | | | | Implemented a (slower) workaround for parallel vectors. Implemented group by. No review.
* Minor changes.Aleksandar Pokopec2010-12-091-1/+1
| | | | | No review.
* Made parallel collections serializable.Aleksandar Pokopec2010-12-091-1/+1
| | | | | No review.
* Fixing jvm 1.5 support for parallel collections.Aleksandar Pokopec2010-12-091-7/+7
| | | | | | | | | | | | | | | | | | Special cased with thread pool executor scheduling. Fixed an ugly concurrency bug where futures returned by a thread pool executor didn't remove the task from the queue when cancel was called. Note to self and others: don't cancel futures returned by thread pool executors, it might lead to unexpected behaviour. Modified the executor to add new threads if all the active threads are syncing, in order to avoid deadlocks. Fixed a hidden bug in AdaptiveWorkStealingTasks, where correct behaviour depended on the execution order of the tasks. This didn't fail before with ForkJoinTasks, since there the execution order is well-defined. Scalachecked 1.5 & 1.6 support. No review.
* Refactored parallel collections for pluggable t...Aleksandar Pokopec2010-11-271-7/+7
| | | | | | | | Refactored parallel collections for pluggable task support implementations. No review.
* Disabled a test failing on server.Aleksandar Pokopec2010-11-081-1/+1
| | | | | No review
* Added size maps to flat hash tables.Aleksandar Pokopec2010-11-081-5/+12
| | | | | | | | | | | Added parallel mutable hash sets. Implemented parallel mutable hash set iterators. Implemented parallel mutable hash set combiners. Factored out unrolled linked lists into a separate class UnrolledBuffer, added tests. Added parallel mutable hash set tests, and debugged hashsets. No review.
* Two hashcode-related failing tests fixed.Aleksandar Pokopec2010-10-281-5/+5
| | | | | No review.
* Debugging parallel hash tables.Aleksandar Pokopec2010-10-281-6/+6
| | | | | No review.
* Mostly refactored existing test functionality f...Aleksandar Pokopec2010-10-281-3/+7
| | | | | | | | Mostly refactored existing test functionality for parallel collections. Added immutable hash set tests. No review.
* Modified remote test.Aleksandar Pokopec2010-10-281-1/+1
| | | | | No review.
* Some serious hash tries bugs fixed.Aleksandar Pokopec2010-10-201-2/+3
| | | | | | | Plus one wild goose chase and test fixes. No review.
* Some exception handling fixes in parallel colle...Aleksandar Pokopec2010-10-201-2/+27
| | | | | | | | Some exception handling fixes in parallel collections. Fixed some regressions. Fixed some tests. No review.
* Reverted a test. No review.Aleksandar Pokopec2010-10-051-2/+2
|
* Added back another previously failing test.Aleksandar Pokopec2010-10-051-2/+2
|
* Disabling a test from last commit until figurin...Aleksandar Pokopec2010-10-051-2/+2
| | | | | | Disabling a test from last commit until figuring out why it fails on the server. No review
* An issue with scalacheck and actors where an ex...Aleksandar Pokopec2010-10-051-0/+3
| | | | | An issue with scalacheck and actors where an excess of thread pools gets created - tmp fix. No review.
* Fixed a scalacheck test group "test entire subd...Aleksandar Pokopec2010-10-041-0/+20
| | | | | | | Fixed a scalacheck test group "test entire subdirectory" problem. It's now possible to add scalacheck tests consisting of multiple files. No review.
* Temporarily disabled collections checks to keep...Aleksandar Pokopec2010-09-011-20/+0
| | | | | | | Temporarily disabled collections checks to keep build from breaking. No review
* Added scalacheck tests for parallel collections.Aleksandar Pokopec2010-09-011-0/+20
Review by phaller (not urgent).