@@ -1024,8 +1024,7 @@ static void wakeOverrides(ProcessOverrideJob *nextOverride,
1024
1024
nextOverride = cur->NextJob .getAsPreprocessedOverride ();
1025
1025
1026
1026
if (hasAlreadyActivated ||
1027
- !targetPriority ||
1028
- cur->getPriority () != *targetPriority)
1027
+ !targetPriority)
1029
1028
cur->wakeAndAbandon ();
1030
1029
else
1031
1030
hasAlreadyActivated = cur->wakeAndActivate ();
@@ -1187,8 +1186,7 @@ void DefaultActorImpl::giveUpThread(RunningJobInfo runner) {
1187
1186
}
1188
1187
1189
1188
bool hasMoreJobs = (bool ) newState.FirstJob ;
1190
- bool hasOverrideAtNewPriority =
1191
- (runner.Priority < oldState.Flags .getMaxPriority ());
1189
+ bool hasOverrideAtNewPriority = false ;
1192
1190
bool hasActiveInlineJob = newState.Flags .hasActiveInlineJob ();
1193
1191
bool needsNewProcessJob = hasMoreJobs && !hasOverrideAtNewPriority;
1194
1192
@@ -1287,8 +1285,7 @@ Job *DefaultActorImpl::claimNextJobOrGiveUp(bool actorIsOwned,
1287
1285
1288
1286
// If the actor is out of work, or its priority doesn't match our
1289
1287
// priority, don't try to take over the actor.
1290
- if (!oldState.FirstJob ||
1291
- oldState.Flags .getMaxPriority () != runner.Priority ) {
1288
+ if (!oldState.FirstJob ) {
1292
1289
1293
1290
// The only change we need here is inline-runner bookkeeping.
1294
1291
if (!tryUpdateForInlineRunner ())
@@ -1370,8 +1367,7 @@ Job *DefaultActorImpl::claimNextJobOrGiveUp(bool actorIsOwned,
1370
1367
// FIXME: should this be an exact match in priority instead of
1371
1368
// potentially running jobs with too high a priority?
1372
1369
Job *jobToRun;
1373
- if (oldState.Flags .getMaxPriority () <= runner.Priority &&
1374
- newFirstJob) {
1370
+ if (newFirstJob) {
1375
1371
jobToRun = newFirstJob;
1376
1372
newState.FirstJob = getNextJobInQueue (newFirstJob);
1377
1373
newState.Flags .setStatus (Status::Running);
@@ -1614,7 +1610,7 @@ void DefaultActorImpl::enqueue(Job *job) {
1614
1610
1615
1611
// If we need an override job, create it (if necessary) and
1616
1612
// register it with the queue.
1617
- bool needsOverride = !wasIdle && newPriority != oldPriority ;
1613
+ bool needsOverride = false ;
1618
1614
if (needsOverride) {
1619
1615
overrideJob.addToState (this , newState);
1620
1616
} else {
0 commit comments