# HG changeset patch # User Gilles Duboscq # Date 1390243817 -3600 # Node ID 810f2c413ace761f5bdb213c3821de405244e92c # Parent b270b954ba9a81d44d5b33074d15751aadf3a1a2 In a Graal-enabled VM, run the Sweeper even if the current thread is not a compiler thread. diff -r b270b954ba9a -r 810f2c413ace src/share/vm/runtime/sweeper.cpp --- a/src/share/vm/runtime/sweeper.cpp Mon Jan 20 19:49:47 2014 +0100 +++ b/src/share/vm/runtime/sweeper.cpp Mon Jan 20 19:50:17 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() || !Thread::current()->is_Compiler_thread()) { + if (!MethodFlushing || !sweep_in_progress() NOT_GRAAL(|| !Thread::current()->is_Compiler_thread())) { return; }