diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2015-04-21 14:49:58 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2015-04-23 09:58:22 +0200 |
commit | 5b73e75943dd89dabda84b0fc3a651837c4a2113 (patch) | |
tree | 761bc0b25004c4edd7d89f500fac13b50d868406 /test/long-running | |
parent | 9cba434b228e33f62e01460abe186fb56038a70e (diff) | |
download | scala-5b73e75943dd89dabda84b0fc3a651837c4a2113.tar.gz scala-5b73e75943dd89dabda84b0fc3a651837c4a2113.tar.bz2 scala-5b73e75943dd89dabda84b0fc3a651837c4a2113.zip |
Remove scala.actors and the actors migration module dependency
Diffstat (limited to 'test/long-running')
-rw-r--r-- | test/long-running/jvm/memleak2_actor.scala | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/long-running/jvm/memleak2_actor.scala b/test/long-running/jvm/memleak2_actor.scala deleted file mode 100644 index 1673b12dac..0000000000 --- a/test/long-running/jvm/memleak2_actor.scala +++ /dev/null @@ -1,39 +0,0 @@ -import scala.actors._ -import Actor._ - -case object Start -case object EndMe - -class A extends Actor { - def act = loop { - react { - case Start => - case EndMe => - exit() - } - } -} - -object Test { - - def z(in: Long) = if (in / 1024L == 0L) in - else if (in / (1024L * 1024L) == 0L) (in / 1024L).toString + "K" - else (in / (1024L * 1024L)).toString + "M" - - def main(args: Array[String]) { - val rt = Runtime.getRuntime() - for (o <- 1 to 300000) { - println("Outer [2AN] "+o) - var a: List[A] = Nil - for (i <- 1 to 10000) { - var t = new A - a = t :: a - t.start - t ! Start - } - for (act <- a) act ! EndMe - //rt.gc() - println("Free "+z(rt.freeMemory())+" total "+z(rt.totalMemory())) - } - } -} |