diff src/share/vm/runtime/sweeper.cpp @ 13383:938e1e64e28f

8028306: nsk stress tests, CodeCache fills, then safepoint asserts Summary: Move handle_full_code_cache() out of block that forbids safepoints Reviewed-by: kvn, iveresov
author anoll
date Thu, 14 Nov 2013 19:27:07 +0100
parents 78da3894b86f
children 86e6d691f2e1
line wrap: on
line diff
--- a/src/share/vm/runtime/sweeper.cpp	Mon Nov 18 12:26:51 2013 -0800
+++ b/src/share/vm/runtime/sweeper.cpp	Thu Nov 14 19:27:07 2013 +0100
@@ -231,7 +231,8 @@
  */
 void NMethodSweeper::possibly_sweep() {
   assert(JavaThread::current()->thread_state() == _thread_in_vm, "must run in vm mode");
-  if (!MethodFlushing || !sweep_in_progress()) {
+  // Only compiler threads are allowed to sweep
+  if (!MethodFlushing || !sweep_in_progress() || !Thread::current()->is_Compiler_thread()) {
     return;
   }