1.1 --- a/src/share/vm/runtime/sweeper.cpp Mon Nov 18 12:26:51 2013 -0800 1.2 +++ b/src/share/vm/runtime/sweeper.cpp Thu Nov 14 19:27:07 2013 +0100 1.3 @@ -231,7 +231,8 @@ 1.4 */ 1.5 void NMethodSweeper::possibly_sweep() { 1.6 assert(JavaThread::current()->thread_state() == _thread_in_vm, "must run in vm mode"); 1.7 - if (!MethodFlushing || !sweep_in_progress()) { 1.8 + // Only compiler threads are allowed to sweep 1.9 + if (!MethodFlushing || !sweep_in_progress() || !Thread::current()->is_Compiler_thread()) { 1.10 return; 1.11 } 1.12