diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-06-14 16:19:31 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-06-14 16:19:31 +0000 |
commit | 5fe886ed6485c98acb76846634555825ea75732d (patch) | |
tree | e0e68d5ee9999bfcdb1bfc5679e43f3e7d154269 /test/pending/jvm/t1801.scala | |
parent | dc426d5fa7cc40c1b3838680087a3e4eb9f5f54a (diff) | |
download | scala-5fe886ed6485c98acb76846634555825ea75732d.tar.gz scala-5fe886ed6485c98acb76846634555825ea75732d.tar.bz2 scala-5fe886ed6485c98acb76846634555825ea75732d.zip |
Moved test for #1801 to pending for offline bug...
Moved test for #1801 to pending for offline bug fixing.
Diffstat (limited to 'test/pending/jvm/t1801.scala')
-rw-r--r-- | test/pending/jvm/t1801.scala | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/pending/jvm/t1801.scala b/test/pending/jvm/t1801.scala new file mode 100644 index 0000000000..6ed7c56336 --- /dev/null +++ b/test/pending/jvm/t1801.scala @@ -0,0 +1,31 @@ +import scala.actors.Actor._ + +object Test { + val rt = Runtime.getRuntime() + val sender = actor { + var cnt = 0 + while(cnt < 500) { + if ((cnt % 100) == 0) println(cnt) + receiver ! new Array[Int] (148576) + cnt += 1 + //println ("Used Mem: " + (((rt.totalMemory() - rt.freeMemory()) / 1048576.) formatted "%.2f") + " Mb") + } + receiver ! 'exit + } + + val receiver = actor { + loop { + react { + case x: Array[Int] => ()//println ("received " + x.length) + case 'exit => { + println("done!") + exit() + } + } + } + } + + def main (args: Array[String]) { + sender + } +} |