Skip to content

Commit

Permalink
[WIP][GR-40746] Fix prioritization of OSR tasks in compilation queue …
Browse files Browse the repository at this point in the history
…of Truffle

PullRequest: graal/19494
  • Loading branch information
FelixPSch committed Dec 5, 2024
2 parents d4d0670 + e1fb7ae commit 8459a70
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ boolean isHigherPriorityThan(CompilationTask other) {
// Any non-compilation action (e.g. compiler init) is higher priority.
return true;
}
if (this.isOSR && other.isLastTier()) {
return true;
if ((this.isOSR ^ other.isOSR) && this.isLastTier() && other.isLastTier()) {
// Any OSR task has higher priority than any non-OSR last tier task
return this.isOSR;
}
int tier = tier();
if (engineData.traversingFirstTierPriority && tier != other.tier()) {
Expand Down

0 comments on commit 8459a70

Please sign in to comment.