Mercurial > hg > graal-compiler
changeset 13716:810f2c413ace
In a Graal-enabled VM, run the Sweeper even if the current thread is not a compiler thread.
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 20 Jan 2014 19:50:17 +0100 |
parents | b270b954ba9a |
children | a65486301b31 |
files | src/share/vm/runtime/sweeper.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }