scala/scala — pull request #1487 by dragos (2012-10-10 10:25:39+00:00)
Title: Fixed SI-6505. Respond to ask calls by immediate failure after compiler shutdown.

When the compiler is asked to shutdown, it may still have items on the working queue, and more can be added by clients in other thread that don't *know* the compiler is down yet. These requests were never serviced, leading to deadlocks or timeouts.

review by @odersky, @hubertp

backport to 2.9.x