public int size() {
        // throw out garbage collected values first
        processQueue();
        return map.size();
    }
Creates a new entry, but wraps the value in a SoftValue instance to enable auto garbage collection.
lang/src/main/java/org/apache/shiro/lang/util/SoftHashMap.java