7024475: loop doesn't terminate when compiled

Reviewed-by: kvn
This commit is contained in:
Tom Rodriguez 2011-03-27 00:00:14 -07:00
parent 360a7be9a7
commit 5387ee459e
8 changed files with 185 additions and 37 deletions

View file

@ -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.