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

v8::Isolate::AttachCppHeap is deprecated #52718

Open
targos opened this issue Nov 4, 2023 · 8 comments
Open

v8::Isolate::AttachCppHeap is deprecated #52718

targos opened this issue Nov 4, 2023 · 8 comments

Comments

@targos
Copy link
Member Author

targos commented Nov 4, 2023

test/cctest/test_cppgc.cc is also affected.

@targos
Copy link
Member Author

targos commented Nov 15, 2023

Ping. This is soon going to be a problem.

@joyeecheung
Copy link
Member

joyeecheung commented Nov 15, 2023

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

@joyeecheung
Copy link
Member

joyeecheung commented Nov 15, 2023

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

@targos
Copy link
Member Author

targos commented Nov 15, 2023

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

@joyeecheung
Copy link
Member

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

@targos
Copy link
Member Author

targos commented Nov 15, 2023

I pushed a buildable version of the canary branch today.

@targos targos transferred this issue from nodejs/node-v8 Apr 27, 2024
@targos
Copy link
Member Author

targos commented Apr 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants