-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from renaissance-benchmarks/topic/update-scal…
…a-sbt Update benchmarks to use Scala 2.12 or 2.13 (and handle most of the resulting fallout)
- Loading branch information
Showing
656 changed files
with
138,137 additions
and
4,956 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
target | ||
.idea | ||
target/ | ||
.bsp/ | ||
.idea/ | ||
*.cfg | ||
*.iml | ||
tools/sbt/lib/local-preloaded/ | ||
|
||
# Scratch directories | ||
harness-*/ | ||
launcher-*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include "../../.scalafmt.conf" |
11 changes: 5 additions & 6 deletions
11
benchmarks/actors/build.sbt → benchmarks/actors-akka/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ import scala.util.Properties._ | |
import scala.util.{Failure, Success} | ||
|
||
/** | ||
* | ||
* @author <a href="http://shams.web.rice.edu/">Shams Imam</a> ([email protected]) | ||
*/ | ||
abstract class AkkaActor[MsgType] extends Actor { | ||
|
@@ -105,20 +104,23 @@ object AkkaActorState { | |
object actorLatch { | ||
private var count = 0 | ||
|
||
def countDown(): Unit = this.synchronized { | ||
count -= 1 | ||
if (count == 0) this.notifyAll() | ||
} | ||
def countDown(): Unit = | ||
this.synchronized { | ||
count -= 1 | ||
if (count == 0) this.notifyAll() | ||
} | ||
|
||
def countUp(): Unit = this.synchronized { | ||
count += 1 | ||
} | ||
def countUp(): Unit = | ||
this.synchronized { | ||
count += 1 | ||
} | ||
|
||
def await(): Unit = this.synchronized { | ||
while (count != 0) { | ||
this.wait() | ||
def await(): Unit = | ||
this.synchronized { | ||
while (count != 0) { | ||
this.wait() | ||
} | ||
} | ||
} | ||
} | ||
|
||
private val mailboxTypeKey = "actors.mailboxType" | ||
|
@@ -214,7 +216,7 @@ object AkkaActorState { | |
def awaitTermination(system: ActorSystem) { | ||
try { | ||
actorLatch.await() | ||
system.shutdown() | ||
system.terminate() | ||
} catch { | ||
case ex: InterruptedException => { | ||
ex.printStackTrace() | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include "../../.scalafmt.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
lazy val renaissanceCore = RootProject(uri("../../renaissance-core")) | ||
|
||
lazy val reactorsCore = ProjectRef(uri("reactors"), "reactorsCoreJVM") | ||
lazy val reactorsCommon = ProjectRef(uri("reactors"), "reactorsCommonJVM") | ||
|
||
lazy val actorsReactors = (project in file(".")) | ||
.settings( | ||
name := "actors-reactors", | ||
version := (version in renaissanceCore).value, | ||
organization := (organization in renaissanceCore).value, | ||
scalaVersion := "2.12.13" | ||
) | ||
.dependsOn( | ||
renaissanceCore, | ||
reactorsCommon, | ||
reactorsCore | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.flooignore | ||
.floo | ||
tmp | ||
# deployed docs | ||
.tags_sorted_by_file | ||
# idea crap | ||
target | ||
*.dmp | ||
deploy | ||
apidocs/ | ||
reactors-common/jvm/src/bench/scala/io/reactors/common/concurrent/cache-trie-remove-benches.scala | ||
.sublime-project | ||
# ctags stuff | ||
*.iml | ||
.idea/ | ||
# misc | ||
.tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2013-2016, Reactors.IO | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, this | ||
list of conditions and the following disclaimer in the documentation and/or | ||
other materials provided with the distribution. | ||
|
||
* Neither the name of the {organization} nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.