File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1745,7 +1745,7 @@ namespace SpecialPointerAuthDiscriminators {
17451745 const uint16_t AsyncContextParent = 0xbda2 ; // = 48546
17461746 const uint16_t AsyncContextResume = 0xd707 ; // = 55047
17471747 const uint16_t AsyncContextYield = 0xe207 ; // = 57863
1748- const uint16_t CancellationNotificationFunction = 0xf73 ; // = 3955 (TaskPriority, TaskPriority) -> Void
1748+ const uint16_t CancellationNotificationFunction = 0x0f08 ; // = 3848
17491749 const uint16_t EscalationNotificationFunction = 0x7861 ; // = 30817
17501750 const uint16_t AsyncThinNullaryFunction = 0x0f08 ; // = 3848
17511751 const uint16_t AsyncFutureFunction = 0x720f ; // = 29199
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ class CancellationNotificationStatusRecord : public TaskStatusRecord {
269269// / subsequently used.
270270class EscalationNotificationStatusRecord : public TaskStatusRecord {
271271public:
272- using FunctionType = SWIFT_CC(swift) void (JobPriority, JobPriority , SWIFT_CONTEXT void *);
272+ using FunctionType = SWIFT_CC(swift) void (uint8_t , uint8_t , SWIFT_CONTEXT void *);
273273
274274private:
275275 FunctionType *__ptrauth_swift_escalation_notification_function Function;
@@ -282,7 +282,10 @@ class EscalationNotificationStatusRecord : public TaskStatusRecord {
282282 }
283283
284284 void run (JobPriority oldPriority, JobPriority newPriority) {
285- Function (oldPriority, newPriority, Argument);
285+ Function (
286+ static_cast <size_t >(oldPriority),
287+ static_cast <size_t >(newPriority),
288+ Argument);
286289 }
287290
288291 static bool classof (const TaskStatusRecord *record) {
Original file line number Diff line number Diff line change @@ -1816,7 +1816,7 @@ swift_task_addPriorityEscalationHandlerImpl(
18161816 void *context) {
18171817 void *allocation =
18181818 swift_task_alloc (sizeof (EscalationNotificationStatusRecord));
1819- auto unsigned_handler = swift_auth_code (handler, 3955 );
1819+ auto unsigned_handler = swift_auth_code (handler, 30817 );
18201820 auto *record = ::new (allocation)
18211821 EscalationNotificationStatusRecord (unsigned_handler, context);
18221822
You can’t perform that action at this time.
0 commit comments