Repository navigation
Release v3.0.6
This release fixes a memory leak when many graphs are opened and closed in the same JVM. With overflow enabled, each graph registered a GC notification listener that was never removed, so a closed graph's storage, including its H2 MVStore and write buffers, stayed on the heap until the process exited. Tools that build many CPGs in one run, such as c2cpg, grew by about 2 MB per graph. Closing a graph now removes its listener, and a regression test covers this (#16).
HeapUsageMonitor.install now returns a closeable monitor instead of void. Code that only uses Graph is unaffected.
Full Changelog: v3.0.5...v3.0.6