scala/scala — pull request #1495 by dragos (2012-10-12 12:10:40+00:00)
Title: [backport] Fixed SI-6505. Respond to ask calls by immediate failure even after comp...

...iler 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
(cherry picked from commit 19ea47b3425f973c1ca92890cb8ee561b0ecab3d)