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

src,tools: initialize cppgc #45704

Merged
merged 1 commit into from
Aug 11, 2023
Merged

Commits on Jul 21, 2023

  1. src,tools: initialize cppgc

    This patch:
    
    - Initializes cppgc in InitializeOncePerProcess() when
      kNoInitializeCppgc is not set
    - Create a CppHeap and attach it to the Isolate when
      there isn't one already during IsolateData initialization.
      The CppHeap is detached and terminated when IsolateData
      is freed.
    - Publishes the cppgc headers in the tarball.
    
    This allows C++ addons to start using cppgc to manage objects.
    
    A helper node::SetCppgcReference() is also added to help addons
    enable cppgc tracing in a user-defined object.
    
    Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
    Refs: nodejs#40786
    dharesign and joyeecheung committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    d53a72d View commit details
    Browse the repository at this point in the history