Mercurial > hg > graal-jvmci-8
comparison src/share/vm/compiler/compileBroker.cpp @ 2403:1927db75dd85
7024475: loop doesn't terminate when compiled
Reviewed-by: kvn
author | never |
---|---|
date | Sun, 27 Mar 2011 00:00:14 -0700 |
parents | 1c0cf339481b |
children | 3d58a4983660 |
comparison
equal
deleted
inserted
replaced
2402:244bf8afbbd3 | 2403:1927db75dd85 |
---|---|
872 // in the meantime with a definitive result. | 872 // in the meantime with a definitive result. |
873 if (compilation_is_complete(method, osr_bci, comp_level)) { | 873 if (compilation_is_complete(method, osr_bci, comp_level)) { |
874 return; | 874 return; |
875 } | 875 } |
876 | 876 |
877 #ifndef PRODUCT | |
878 if (osr_bci != -1 && !FLAG_IS_DEFAULT(OSROnlyBCI)) { | |
879 if ((OSROnlyBCI > 0) ? (OSROnlyBCI != osr_bci) : (-OSROnlyBCI == osr_bci)) { | |
880 // Positive OSROnlyBCI means only compile that bci. Negative means don't compile that BCI. | |
881 return; | |
882 } | |
883 } | |
884 #endif | |
877 | 885 |
878 // If this method is already in the compile queue, then | 886 // If this method is already in the compile queue, then |
879 // we do not block the current thread. | 887 // we do not block the current thread. |
880 if (compilation_is_in_queue(method, osr_bci)) { | 888 if (compilation_is_in_queue(method, osr_bci)) { |
881 // We may want to decay our counter a bit here to prevent | 889 // We may want to decay our counter a bit here to prevent |