Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using a nested WeakMap for manager instances for a given owner.
The first level WeakMap is sufficient to prevent memory leaks. The only potential value that the second level WeakMap provides is to allow us to _unload_ code during the lifetime of a single owner instance, which is really not something that we support. Having nested WeakMap's breaks some tooling around memory leak investigation that we commonly use.
- Loading branch information