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

Re-add cleanup code from DisposeValue #226

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

caitp
Copy link
Collaborator

@caitp caitp commented Aug 24, 2023

This re-introduces a bunch of Caches cleanup from the ObjectManager, which may improve the situation with leaks to some degree. More work is (probably) needed here.

To be honest, I've only verified that these are passing the in-tree tests, have not tried it against a large application that would see problems from the eternal objects held by the Caches.

This re-introduces a bunch of Caches cleanup from the ObjectManager, which may improve the situation with leaks to some degree. More work is needed here.
@cla-bot cla-bot bot added the cla: yes label Aug 24, 2023
StructWrapper::~StructWrapper() {
parent_.Reset();
if (data_) {
// v8::Isolate::GetCurrent() may not necessarily be the isolate this object lives in.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(but I sure hope it is.. I mean really, it should be.. if it's not, that seems like a v8-cppgc bug?)

@NathanWalker
Copy link
Contributor

This needs to be tested against larger projects - it appears to work against the ultimate tab app.

@NathanWalker NathanWalker merged commit 727338e into NativeScript:v8-v11 Sep 7, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants