-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add automated leak detection for common scenarios #575
Comments
For JS we could do https://stackoverflow.com/a/3034245/132047. We are currently using Chromium for tests, but desire to switch to Node.js, in which case it's still V8 so basically the same thing works: https://stackoverflow.com/a/30654451/132047 |
This came up again today. We could use the XCTest memory leak detection magic. The test should create a LazyList and bind it and confirm nothing leaks https://developer.apple.com/documentation/xcode/preventing-memory-use-regressions |
Still want to do:
|
|
There are common scenarios that occur in Redwood and Treehouse which we should use to ensure branches of the graph are correctly GC'd.
Examples:
RedwoodView
composition and the associated view should be GC'dTreehouseView
subtype should goWe need to be able to do this on every platform we support.
On Android and JVM we can use LeakCanary. On JS and native we can just do what leak canary is doing: create a weak reference and spin for 5 seconds to see if the reference disappears, optionally trying to force a GC as much as possible (if possible).
The text was updated successfully, but these errors were encountered: