-
-
Notifications
You must be signed in to change notification settings - Fork 34
fix: memory leaks & WeakRefs #111
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
Conversation
* Clean up hanging references before deallocating Reduces total dictionary related memory leaks by 36% * fix
Would it be possible to get a RC release for testing? |
This comment was marked as abuse.
This comment was marked as abuse.
It's the |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
That one is a tricky one - the data in some cases does persist fine without the But yes, the latest alpha has that one change reverted before build - because it does cause the failure you are seeing in some cases (garbage passed instead of the right value, because it's freed too early). @darind suggested we try making the arguments into The fastest way to debug/step through and reach that branch is to call NSMethodSignature.signatureWithObjCTypes('v@:c'); if you want to experiment with that idea.
v8's WeakRefs make no guarantees when they are actually released or GC'd - with this PR, we are switching to the built-in WeakRef implementation, so that change is expected... |
This comment was marked as abuse.
This comment was marked as abuse.
Thanks. I will give it a try today. As already mentioned by Igor the change on 0f96dc4#diff-bec6e3d6b4fa0eacfb7726d6e5915c9eecda4e319bc61f71a0527e740eb197ddR160 does indeed create a lot of weird issues for the nativescript-sqlite package. It also broke something in frame transitions from the core (if my memory serves me right). |
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla. |
WIP