Mercurial > hg > truffle
changeset 16185:518a221dbbde
don't allow blocking compile requests from the compiler thread
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 24 Jun 2014 15:14:35 -0700 |
parents | 8fde32ece68e |
children | c238f67f0745 |
files | src/share/vm/compiler/compileBroker.cpp |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp Tue Jun 24 11:28:06 2014 -0700 +++ b/src/share/vm/compiler/compileBroker.cpp Tue Jun 24 15:14:35 2014 -0700 @@ -1211,6 +1211,13 @@ // Should this thread wait for completion of the compile? blocking = is_compile_blocking(method, osr_bci); +#ifdef COMPILERGRAAL + // Don't allow blocking compiles for requests triggered by Graal. + if (blocking && thread->is_Compiler_thread()) { + blocking = false; + } +#endif + // We will enter the compilation in the queue. // 14012000: Note that this sets the queued_for_compile bits in // the target method. We can now reason that a method cannot be