Skip to content
Snippets Groups Projects
  1. Nov 30, 2015
    • Sven M. Hallberg's avatar
      add h_alloc() which calls errx() on failure and use it for all basic allocation · 3fc56a0d
      Sven M. Hallberg authored
      Rationale: "Basic allocation" refers to things outside of parsing proper,
      mostly initialization. If such allocations fail, the system is globally
      emory-starved from which it will likely not recover by returning failure.
      In this case, terminating the process is in fact the most robust strategy as
      it may mean the difference between a permanent hang and a temporary crash.
      3fc56a0d
    • Sven M. Hallberg's avatar
      don't allocate a new arena in h_bind, use the existing one · ca1d8df0
      Sven M. Hallberg authored
      Rationale: If memory allocation fails in the inner parse and we
      longjump up the stack, the temporary arena will be missed and leak.
      
      NB: This change means that any allocations done by the continuation
      (in the form of new parsers, probably) will persist for the
      lifetime of the parse result. Beware of wasting too much memory
      this way! The bind continuation should generally keep dynamic
      allocations to a minimum.
      ca1d8df0
  2. Nov 27, 2015
  3. Nov 14, 2015
  4. Nov 01, 2015
  5. Oct 30, 2015
  6. Oct 29, 2015
  7. Oct 04, 2015
  8. Oct 03, 2015
  9. Sep 26, 2015
  10. Sep 25, 2015
  11. Sep 24, 2015
Loading