mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-11 17:55:53 +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
|
@Override
|
||||||
public void execute(Runnable command) {
|
public void execute(Runnable command) {
|
||||||
final int size = tasks.size();
|
final int size = tasks.size();
|
||||||
if (size > WARNING_THRESHOLD) {
|
if (size == WARNING_THRESHOLD) {
|
||||||
log.warn(
|
log.warn(
|
||||||
"User thread has {} pending tasks, memory exhaustion may occur.\n" +
|
"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" +
|
"If you see this message, check your memory consumption and see if it's problematic or excessively spikey.\n" +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user