Cleaning cache thread has low priority

This commit is contained in:
Jindra Petřík
2022-11-20 22:12:19 +01:00
parent 220f851ea9
commit 719cea5f60
@@ -92,6 +92,7 @@ public class Cache<K, V> implements Freed {
}
}
};
oldCleaner.setPriority(Thread.MIN_PRIORITY);
oldCleaner.start();
}
Cache<K, V> instance = new Cache<>(weak, memoryOnly, name, temporary);