Deconstructing the LuaJIT Pseudo Memory Leak

(blog.openresty.com)

14 points | by dgares 4 days ago ago

4 comments

  • rurban 2 hours ago

    I only see Mike Pall's commits in https://github.com/openresty/luajit2/commits/v2.1-agentzh/ (agentzh's branch). So it looks Cloudflare has to pay for this mtrim patch.

  • writebetterc 2 hours ago

    This has to be AI slop text... It doesn't actually say what it does. If you've got a non-compacting GC that's fragmenting memory. If you need to release memory, then you better make sure that the blocks the GC is using are empty, and munmap them.

    • bakugo 2 hours ago

      > This isn’t simply a code quality issue; rather, it stems from a “communication gap” between the runtime memory allocation mechanism and the operating system

      > It is not merely a patch, but an enhanced runtime environment

      > This is not merely a code quality issue, but a profound architectural challenge

      Didn't even have to read past the opening.

    • 2 hours ago
      [deleted]