summaryrefslogtreecommitdiff
path: root/test/files/presentation/shutdown-deadlock.check
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2012-03-04 18:31:22 +0100
committerIulian Dragos <jaguarul@gmail.com>2012-03-05 18:44:42 +0100
commit53fb61cba9f02c176f1aae80f0b270491fbbf91c (patch)
tree3d8352a7036c5595ae75051a6a83857b2ad449e7 /test/files/presentation/shutdown-deadlock.check
parentfb87f2de763e558c8639905ea8dfb447b5212cf7 (diff)
downloadscala-53fb61cba9f02c176f1aae80f0b270491fbbf91c.tar.gz
scala-53fb61cba9f02c176f1aae80f0b270491fbbf91c.tar.bz2
scala-53fb61cba9f02c176f1aae80f0b270491fbbf91c.zip
Fix deadlocks occurring during presentation compiler shutdown.
During shutdown, other threads can still post work items on the work queue. They will never be serviced, leading to clients waiting forever. The fix is to replace the implementation of the queue with a 'always fail' implementation during shutdown. Review by @odersky.
Diffstat (limited to 'test/files/presentation/shutdown-deadlock.check')
-rw-r--r--test/files/presentation/shutdown-deadlock.check3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/presentation/shutdown-deadlock.check b/test/files/presentation/shutdown-deadlock.check
new file mode 100644
index 0000000000..ddcb4ff59b
--- /dev/null
+++ b/test/files/presentation/shutdown-deadlock.check
@@ -0,0 +1,3 @@
+reload: arrays.scala
+reload: arrays.scala
+No timeouts