We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d4d0670 + e1fb7ae commit 8459a70Copy full SHA for 8459a70
truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/CompilationTask.java
@@ -243,8 +243,9 @@ boolean isHigherPriorityThan(CompilationTask other) {
243
// Any non-compilation action (e.g. compiler init) is higher priority.
244
return true;
245
}
246
- if (this.isOSR && other.isLastTier()) {
247
- return true;
+ if ((this.isOSR ^ other.isOSR) && this.isLastTier() && other.isLastTier()) {
+ // Any OSR task has higher priority than any non-OSR last tier task
248
+ return this.isOSR;
249
250
int tier = tier();
251
if (engineData.traversingFirstTierPriority && tier != other.tier()) {
0 commit comments