mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 13:54:38 +02:00
7024475: loop doesn't terminate when compiled
Reviewed-by: kvn
This commit is contained in:
parent
360a7be9a7
commit
5387ee459e
8 changed files with 185 additions and 37 deletions
|
@ -874,6 +874,14 @@ void CompileBroker::compile_method_base(methodHandle method,
|
|||
return;
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
if (osr_bci != -1 && !FLAG_IS_DEFAULT(OSROnlyBCI)) {
|
||||
if ((OSROnlyBCI > 0) ? (OSROnlyBCI != osr_bci) : (-OSROnlyBCI == osr_bci)) {
|
||||
// Positive OSROnlyBCI means only compile that bci. Negative means don't compile that BCI.
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// If this method is already in the compile queue, then
|
||||
// we do not block the current thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue