public synchronized void setHardCacheSize(int size) {
		while (hardCache.size() > size) {
			hardCache.removeLast();
		}
		this.hardCacheSize = size;
	}
Sets the number of objects to protect against garbage collection.
@param size the minimum number of objects to keep in the cache.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DBObjectCache.java