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

Weakreference of actions list meets unexpected GC #12

Open
kyangc opened this issue Dec 24, 2015 · 0 comments
Open

Weakreference of actions list meets unexpected GC #12

kyangc opened this issue Dec 24, 2015 · 0 comments

Comments

@kyangc
Copy link

kyangc commented Dec 24, 2015

In my use of grant, I met a problem that, when user spend more than 10 seconds or more time to decide whether to give the permission, references in the action list will be GCed, actions get from iterator will return null and will be removed from the list. In that situation, no followed code will be executed, callbacks will NEVER be executed.

For the case, I changed the weakreference list to strong reference objects list as an alternative way, thus suffered from memory leaked risk, but it just worked fine for me and infact you do not have that much dangerous permissions to gain permission.

Hope for a more memory safe way to handle this problem.

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

1 participant