apple / swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence
swift.org
Apache License 2.0
5.23k stars 1.12k forks source link

Workaround for https://github.com/apple/swift/issues/73532 #4951

Closed hjyamauchi closed 1 month ago

hjyamauchi commented 1 month ago

Increase the initial size of __CFReadSocketsFds to reduce the chance of resizing it which appears to lead to compiler hangs.

hjyamauchi commented 1 month ago

CC @compnerd

hjyamauchi commented 1 month ago

Context: we are experiencing a occasional swift compiler hang issue on Windows on many-core machines. We have so far narrowed it down to dropped socket file descriptors due to some sort of data corruption in the __CFReadSocketsFds bit vector. Though we haven't fully figured it out, this change seems to be a reliable workaround for it.

The details are described at https://github.com/apple/swift/issues/73532

hjyamauchi commented 1 month ago

Closing in favor of https://github.com/apple/swift-corelibs-foundation/pull/4954