Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Xiaohua Cai <[email protected]>
  • Loading branch information
kevincai committed Sep 20, 2024
1 parent b523da0 commit dae8683
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,7 @@ public int getCorePoolSize() {
}

public void setPoolSize(int poolSize) {
<<<<<<< HEAD
// When the previous poolSize is larger than the poolSize to be set,
// you need to setCorePoolSize first and then setMaximumPoolSize, and vice versa.
// Otherwise, it will throw IllegalArgumentException
int prePoolSize = executor.getCorePoolSize();
if (poolSize < prePoolSize) {
executor.setCorePoolSize(poolSize);
executor.setMaximumPoolSize(poolSize);
} else {
executor.setMaximumPoolSize(poolSize);
executor.setCorePoolSize(poolSize);
}
=======
ThreadPoolManager.setFixedThreadPoolSize(executor, poolSize);
>>>>>>> 5f3814317e ([BugFix] fix thread pool size adjustment exception (#51191))
}

private class TaskChecker implements Runnable {
Expand Down

0 comments on commit dae8683

Please sign in to comment.