Skip to content

Commit

Permalink
missed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Sep 9, 2024
1 parent 744c2b2 commit b5dd97a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ Group::findEnabledProcessWithLowestBusyness() const {
if (leastBusyProcessIndex == -1 ||
enabledProcessBusynessLevels[i] < lowestBusyness ||
(enabledProcessBusynessLevels[i] == lowestBusyness && enabledProcesses[i]->generation > highest_gen)) {
if (enabledProcesses[i]->generation > highest_gen) {
highest_gen = enabledProcesses[i]->generation;
}
leastBusyProcessIndex = i;
lowestBusyness = enabledProcessBusynessLevels[i];
}
Expand Down
6 changes: 4 additions & 2 deletions test/cxx/Core/ApplicationPool/ProcessTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ namespace tut {

args["spawner_creation_time"] = 0;

ProcessPtr process(context.processObjectPool.construct(
&groupInfo, result, args), false);
Process *p = context.processObjectPool.malloc();
p = new (p) Process(&groupInfo, 0, result, args);
ProcessPtr process(p, false);

process->shutdownNotRequired();
return process;
}
Expand Down

0 comments on commit b5dd97a

Please sign in to comment.