Please sign in to comment.
domain: use strong reference to domain while active
When an uncaught exception is thrown inside a domain, the domain is removed from the stack as of 43a5170. This means that it might not be kept alive as an object anymore, and may be garbage collected before the `after()` hook can run, which tries to exit it as well. Resolve that by making references to the domain strong while it is active. Fixes: #28275 PR-URL: #28313 Reviewed-By: Ben Noordhuis <firstname.lastname@example.org> Reviewed-By: Vladimir de Turckheim <email@example.com> Reviewed-By: Rich Trott <firstname.lastname@example.org>
- Loading branch information...
Showing with 25 additions and 1 deletion.