JFactory: only clear the cache if there are some free nodes
* JFactory: only clear the cache if there are some free nodes
Otherwise, there's no need to do so -- we didn't delete any BDDs.
@@ -3128,11 +3128,15 @@ public final class JFactory extends BDDFactory {
}
}
+ if (bddfreenum > 0) {
+ // Don't reset or clean caches if we didn't free any nodes.
+
if (FLUSH_CACHE_ON_GC) {
bdd_operator_reset();
} else {
bdd_operator_clean();
}
+ }
c2 = System.currentTimeMillis();
gbcclock += c2 - c1;
