changeset 53265:9ae99ef38c16

8195627: [Graal] nsk/jdi/VirtualMachine/redefineClasses/redefineclasses026 hangs with Graal in Xcomp mode Reviewed-by: sspitsyn, kvn
author dtitov
date Tue, 30 Oct 2018 19:29:21 -0700
parents 6507eeb6f047
children 346ad00d6154
files src/hotspot/share/compiler/compileBroker.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/compiler/compileBroker.cpp	Tue Oct 30 22:24:04 2018 -0400
+++ b/src/hotspot/share/compiler/compileBroker.cpp	Tue Oct 30 19:29:21 2018 -0700
@@ -1501,8 +1501,9 @@
 
     bool progress;
     if (jvmci_compiler_thread != NULL) {
-      // If the JVMCI compiler thread is not blocked, we deem it to be making progress.
-      progress = jvmci_compiler_thread->thread_state() != _thread_blocked;
+      // If the JVMCI compiler thread is not blocked or suspended, we deem it to be making progress.
+      progress = jvmci_compiler_thread->thread_state() != _thread_blocked &&
+        !jvmci_compiler_thread->is_external_suspend();
     } else {
       // Still waiting on JVMCI compiler queue. This thread may be holding a lock
       // that all JVMCI compiler threads are blocked on. We use the counter for