Function gc

  • Manually trigger the garbage collector

    This does two things:

    1. It tells JavaScriptCore to run the garbage collector
    2. It tells mimalloc to clean up fragmented memory. Mimalloc manages the heap not used in JavaScriptCore.

    Parameters

    • force: boolean

      Synchronously run the garbage collector

    Returns void

  • Manually trigger the garbage collector

    This does two things:

    1. It tells JavaScriptCore to run the garbage collector
    2. It tells mimalloc to clean up fragmented memory. Mimalloc manages the heap not used in JavaScriptCore.

    Parameters

    • force: boolean

      Synchronously run the garbage collector

    Returns void

Generated using TypeDoc