• Looks like GitHub is down right now so I can't point you to the exact points, but it's easy enough to search for jsvGarbageCollect.

    Specifically:

      if (loopsIdling==1 &&
          minTimeUntilNext > jshGetTimeFromMilliseconds(10) &&
          !jsvMoreFreeVariablesThan(JS_VARS_BEFORE_IDLE_GC)) { ...
            jsvGarbageCollect();
    

    History is cleared line-by-line, oldest first, when memory actually completely runs out. I think it may also be removed completely if a Flat String allocation is required and then fails.

    I really think you're going down a rabbit hole here when I don't think there's any need though.

  • Thr 2020.04.23

    Thank you for the function name, that should suffice.

    'I don't think there's any need though'

    I'd like to see what should be going on and when, before I ask a ton of unnecessary questions.

About

Avatar for Gordon @Gordon started