Skip to content
Snippets Groups Projects
  1. Sep 19, 2019
    • rswindell's avatar
      Fix resource leak from background-load()'s: · 260d24f0
      rswindell authored
      The created message queue for each background-load()ed script was never
      detached-from by the child thread, so the linked-lists (and their semaphores)
      were never freed. Calling msgQueueDetach() before ending the background_thread
      fixes that leak.
      260d24f0
    • rswindell's avatar
      Don't leak FILE streams for calls to js_CreateFileObject(), setting external · c20f74cc
      rswindell authored
      to TRUE meant the FILE* (created with fdopen) would never be closed. So we now
      duplicate the file descriptor and get rid of the external flag, always closing
      Files (FILE streams) upon File object finalize.
      This fixes the resource leak leading to the eventual "Error 24 opening ..." in
      the ircd.js when loaded via jsexec, on Windows. This error happened after
      169 calls to load(true,...), because each background load creates 3 Files
      (for stdin/out/err) and those FILE streams were never closed/freed, and
      169 * 3 = 507, plus a few open files = 512, the maximum number of open file
      streams in the Microsoft CRTL apparently. Thanks to Deuce for recognizing these
      numbers as "magic" and pointing to the likely cause.
      c20f74cc
    • rswindell's avatar
      Address some debug-log output issues with the File object: · 437edfa4
      rswindell authored
      "4294967295 File closed"
      "0000 File closed: /path/to/file"
      437edfa4
  2. Sep 17, 2019
  3. Sep 16, 2019
  4. Sep 15, 2019
  5. Sep 13, 2019
  6. Sep 10, 2019
  7. Sep 09, 2019
  8. Sep 08, 2019
  9. Sep 07, 2019
  10. Sep 06, 2019
Loading