]> git.bitcoin.ninja Git - ldk-java/commit
Avoid manual memory management in NioPeerHandler
authorMatt Corallo <git@bluematt.me>
Sun, 12 May 2024 19:36:42 +0000 (19:36 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 13 May 2024 18:34:52 +0000 (18:34 +0000)
commitfcd768b3fedc46704675725136578d70af42201d
tree0f0128edea48103b751d5e1127c474cb420de4d9
parentb70af097a9088982656824c1a42d3cc1b5d6734e
Avoid manual memory management in NioPeerHandler

We still free the native memory optimistically, but avoid disabling
the GC being able to free memory entirely.

Fixes #157
src/main/java/org/ldk/batteries/NioPeerHandler.java