Skip to content

Commit

Permalink
Update ThreadPool.java
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Oct 9, 2023
1 parent 86f7622 commit 20fba02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rxlib/src/main/java/org/rx/core/ThreadPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ private static int checkSize(int size) {

private static int checkCapacity(int capacity) {
if (capacity <= 0) {
capacity = Constants.CPU_THREADS * 32;
//todo set with memorysize
capacity = Constants.CPU_THREADS * 64;
}
return capacity;
}
Expand Down

0 comments on commit 20fba02

Please sign in to comment.