mirror of https://github.com/alibaba/druid.git
Compare commits
3 Commits
dba99c0636
...
b1238eae4a
| Author | SHA1 | Date |
|---|---|---|
|
|
b1238eae4a | |
|
|
da4832aa85 | |
|
|
7538dc54a7 |
|
|
@ -3149,6 +3149,9 @@ public class DruidDataSource extends DruidAbstractDataSource
|
|||
|
||||
// shrink connections by HotSpot intrinsic function _arraycopy for performance optimization.
|
||||
int removeCount = evictCount + keepAliveCount;
|
||||
if (removeCount > poolingCount) {
|
||||
removeCount = poolingCount;
|
||||
}
|
||||
if (removeCount > 0) {
|
||||
int breakedCount = poolingCount - i;
|
||||
if (breakedCount > 0) {
|
||||
|
|
@ -3253,7 +3256,9 @@ public class DruidDataSource extends DruidAbstractDataSource
|
|||
lock.lock();
|
||||
try {
|
||||
int fillCount = minIdle - (activeCount + poolingCount + createTaskCount);
|
||||
emptySignal(fillCount);
|
||||
if (fillCount > 0) {
|
||||
emptySignal(fillCount);
|
||||
}
|
||||
} finally {
|
||||
lock.unlock();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue