Files
swift-nio/Sources/NIOPosix
Cory Benfield 74c924fd01 Apply an autoreleasepool around the task drop (#3638)
Motivation:

Users can write arbitrary code in their deinits, and that arbitrary code
_may_ end up hitting Objective-C autoreleases. We don't want to leak
those objects into the per-thread autoreleasepool, as that may not be
popped for a very long time, if ever, so we need to to ensure that
deiniting the task objects has an autoreleasepool.

Modifications:

Add an autoreleasepool around the task drop, and tests to validate that
we do things correctly.

Result:

Better memory management around deinit
2026-06-24 09:27:31 +01:00
..