Skip to content

v8::Isolate::AttachCppHeap is deprecated #52718

Activity

  1. targos commented on Nov 4, 2023

    @targos
    MemberAuthor

    test/cctest/test_cppgc.cc is also affected.

  2. targos commented on Nov 15, 2023

    @targos
    MemberAuthor

    Ping. This is soon going to be a problem.

  3. joyeecheung commented on Nov 15, 2023

    @joyeecheung
    Member

    It seems to me that we can just skip the attach and detach call at all and V8 can handle it for us? (We previously already do "if there isn't one, create one, otherwise use the existing one" which seems to be what V8 does internally now) cc @mlippautz

  4. joyeecheung commented on Nov 15, 2023

    @joyeecheung
    Member

    Or specifically is this branch always true now? Then we can just remove the else branch and the branch in IsolateData::~IsolateData

    https://github.com/nodejs/node-v8/blob/1ccbbfef3a32dbce7d5f35f17c2280bc995af10e/src/env.cc#L524-L527

  5. targos commented on Nov 15, 2023

    @targos
    MemberAuthor

    It's entirely possible that this is easy to fix. I just am not able to do it myself with my knowledge of C++.

  6. joyeecheung commented on Nov 15, 2023

    @joyeecheung
    Member

    I can check later to see if that branch is always true now. If it is we can delete the extra handling.

  7. targos commented on Nov 15, 2023

    @targos
    MemberAuthor

    I pushed a buildable version of the canary branch today.

  8. transferred this issue fromnodejs/node-v8on Apr 27, 2024
  9. targos commented on Apr 27, 2024

    @targos
    MemberAuthor

    Moved to core repo as the code is now in main.

  10. targos commented on Jan 29, 2025

    @targos
    MemberAuthor

    Related: v8#209

  11. joyeecheung commented on Jan 29, 2025

    @joyeecheung
    Member

    It seems V8 fork is able to just let the isolate own the CppHeap now? Not sure if the task runner timing issue has been dealt with already in the upstream, if it is we can revive #53205 (comment)

  12. targos commented on Jan 30, 2025

    @targos
    MemberAuthor

    Another one: v8#210

  13. targos commented on Jan 31, 2025

    @targos
    MemberAuthor

    And v8#211

  14. targos commented on Feb 18, 2025

    @targos
    MemberAuthor

    And v8#212

  15. targos commented on Mar 5, 2025

    @targos
    MemberAuthor

    And v8#213

  16. joyeecheung commented on Mar 5, 2025

    @joyeecheung
    Member

    I see that on the main branch, AttachCppHeap and DetachCppHeap are still only marked as V8_DEPRECATED_SOON, which means the code that are needed to fully migrate may not be there yet (see #53205 (comment)). Though when 13.4 upgrade lands we may be able to start migration.

  17. targos commented on Sep 12, 2025

    @targos
    MemberAuthor

    This was fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions