# HG changeset patch # User Gilles Duboscq # Date 1390325703 -3600 # Node ID 2d4a8d3d286b03106d288b62ee096381215dddbc # Parent 2f944a810dd407a5caece1800625d7b0167689e5 Sweeper: make sure we only run the sweeper on java threads diff -r 2f944a810dd4 -r 2d4a8d3d286b src/share/vm/runtime/sweeper.cpp --- a/src/share/vm/runtime/sweeper.cpp Tue Jan 21 15:26:38 2014 +0100 +++ b/src/share/vm/runtime/sweeper.cpp Tue Jan 21 18:35:03 2014 +0100 @@ -233,7 +233,7 @@ void NMethodSweeper::possibly_sweep() { assert(JavaThread::current()->thread_state() == _thread_in_vm, "must run in vm mode"); // Only compiler threads are allowed to sweep - if (!MethodFlushing || !sweep_in_progress() NOT_GRAAL(|| !Thread::current()->is_Compiler_thread())) { + if (!MethodFlushing || !sweep_in_progress() NOT_GRAAL(|| !Thread::current()->is_Compiler_thread()) GRAAL_ONLY(|| !Thread::current()->is_Java_thread())) { return; }