-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Var.dvals at the top of the call stack [fixes #4]
If any code causes Var.dvals to be set outside of a push/pop pair, and a later pop never occurs to remove it, then it will cause the thread that called .invoke to hold a reference to Var.dvals, which will cause all of the classes loaded in the pod to be retained. This removes dvals, but only if we are the outer .invoke on the current thread (in case code invoked reaches out of the shim then back in).
- Loading branch information
Showing
1 changed file
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters