scala/scala — pull request #263 by dragos (2012-03-06 09:45:35+00:00)
Title: 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.(cherry picked from commit 53fb61cba9f02c176f1aae80f0b270491fbbf91c)

(removed the test because there are no presentation compiler tests in 2.9.x and it depends on test infrastructure that is not in place).

Conflicts:

src/compiler/scala/tools/nsc/interactive/CompilerControl.scala