Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasi: use memory-tracking allocator #30745

Closed
wants to merge 6 commits into from

Commits on Dec 1, 2019

  1. src: port memory-tracking allocator from QUIC repo

    This implements a memory-tracking allocator that can be used to
    provide memory allocation facilities to several thread-safe C
    libraries, including nghttp2, nghttp3, ngtcp3 and uvwasi.
    
    Refs: https://github.com/nodejs/quic/blob/34ee0bc96f804c73cb22b2945a1a78f780938492/src/node_mem.h
    Co-authored-by: James M Snell <jasnell@gmail.com>
    addaleax and jasnell committed Dec 1, 2019
    Copy the full SHA
    7b09d63 View commit details
    Browse the repository at this point in the history
  2. http2: use shared memory tracking implementation

    The extensive testing done on http2 makes it easier to make sure
    the implementation is correct (and doesn’t diverge unnecessarily).
    
    Refs: nodejs/quic#126
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Dec 1, 2019
    Copy the full SHA
    34a9e5f View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    a550883 View commit details
    Browse the repository at this point in the history
  4. deps: update uvwasi

    addaleax committed Dec 1, 2019
    Copy the full SHA
    11135bb View commit details
    Browse the repository at this point in the history
  5. wasi: use memory-tracking allocator

    This:
    
    - Protects against memory leaks in uvwasi.
    - Allows tracking the allocated memory in heap dumps.
    addaleax committed Dec 1, 2019
    Copy the full SHA
    05d809e View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2019

  1. fixup! src: port memory-tracking allocator from QUIC repo

    Co-Authored-By: Jiawen Geng <technicalcute@gmail.com>
    addaleax and gengjiawen committed Dec 4, 2019
    Copy the full SHA
    8bf83d3 View commit details
    Browse the repository at this point in the history