Cleaning cache thread has low priority

This commit is contained in:
Jindra Petřík
2022-11-18 11:14:31 +01:00
parent 220f851ea9
commit 719cea5f60

View File

@@ -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);