-
Notifications
You must be signed in to change notification settings - Fork 325
Add some logging to TaskScheduler again
#1335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@swift-ci Please test |
adcccf9 to
bdc130b
Compare
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
bdc130b to
d568264
Compare
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
Turns out that some of logging from task scheduler would have been useful to debug a recent test failure. This adds some logging into `TaskScheduler` again and, most importantly, adds log messages to `ClosureTaskDescription` in `TaskSchedulerTests`.
…heduler` We need this function anyway to escalate process priorities when we set `nice`ness values for them. It also simplifies the task scheduler and I’m hoping that it fixes a non-deterministic failure that causes task priority elevation to not work properly.
d568264 to
ef9cd63
Compare
|
@swift-ci Please test |
|
@swift-ci Please test Windows |
| public static func platformSupportsTaskPriorityElevation() throws { | ||
| #if os(macOS) | ||
| if #available(macOS 14.0, *) { | ||
| // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there meant to be a comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also meant to be negated 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
// Priority elevation was implemented by https://github.com/apple/swift/pull/63019, which is available in the
// Swift 5.9 runtime included in macOS 14.0+… doesn’t support task priority elevation
ef9cd63 to
cb24ce9
Compare
|
@swift-ci Please test |
|
@swift-ci Please test Linux |
|
@swift-ci Please test Windows |
|
@swift-ci Please test Linux |
Turns out that some of logging from task scheduler would have been useful to debug a recent test failure. This adds some logging into
TaskScheduleragain and, most importantly, adds log messages toClosureTaskDescriptioninTaskSchedulerTests.rdar://127474171