mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +00:00
Threading: print fewer warnings of excess closure buildup. We should really use a rate limiter here.
This commit is contained in:
parent
5f07f98c05
commit
d7118d524e
@ -116,7 +116,7 @@ public class Threading {
|
||||
@Override
|
||||
public void execute(Runnable command) {
|
||||
final int size = tasks.size();
|
||||
if (size > WARNING_THRESHOLD) {
|
||||
if (size == WARNING_THRESHOLD) {
|
||||
log.warn(
|
||||
"User thread has {} pending tasks, memory exhaustion may occur.\n" +
|
||||
"If you see this message, check your memory consumption and see if it's problematic or excessively spikey.\n" +
|
||||
|
Loading…
Reference in New Issue
Block a user