java-smt icon indicating copy to clipboard operation
java-smt copied to clipboard

Cleaning up msat_terms, at least optionally

Open cheshire opened this issue 9 years ago • 1 comments

Currently, we never deallocate msat_terms. Mathsat5 has a function msat_gc_env, which can be called periodically for this purpose. This can be enabled at least as an option.

cheshire avatar Feb 09 '16 13:02 cheshire

This is more difficult than I've thought. msat_gc_env is very expensive, and we currently don't have a notifier which would say "ooops we are about to run out of memory". Calling GC on every allocation is prohibitive.

cheshire avatar Feb 15 '16 16:02 cheshire