Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't depend on the GC to free native memory on Linux #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 18, 2024

  1. Don't depend on the GC to free native memory on Linux.

    JNA is freeing 192 KiB of per NuProcess native buffers on GC Finalizer / Reference Queue processing. In cases with very low GC activity, this is essentially a memory leak, potentially causing native memory issues.
    
      * out/err/in buffers are freed onExit,
      * event needed for Epoll #registerProcess and ##queueWrite is allocated and freed in the method,
      * tweak in reusing of IntByReference for duration of epoll/kqueue processor,
      * updated JNA library to 5.13.0, to get #close on Memory object (added in 5.12.0).
    avrecko committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    09350c5 View commit details
    Browse the repository at this point in the history