Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C#: do not drop resource handles in finalizers (bytecodealliance#1040)
* C#: do not drop resource handles in finalizers As of this writing, we cannot safely drop a handle to an imported resource from a .NET finalizer because it may still have one or more open child resources. Once WIT has explicit syntax for indicating parent/child relationships, we should be able to use that information to keep track of child resources automatically in generated code, at which point we'll be able to drop them in the correct order from finalizers. Fixes bytecodealliance#1039 Signed-off-by: Joel Dice <[email protected]> * remove finalizers per PR feedback Signed-off-by: Joel Dice <[email protected]> --------- Signed-off-by: Joel Dice <[email protected]>
- Loading branch information