diff --git a/include/swift/ABI/MetadataValues.h b/include/swift/ABI/MetadataValues.h index d16f44e075496..e2e1c45a9b43b 100644 --- a/include/swift/ABI/MetadataValues.h +++ b/include/swift/ABI/MetadataValues.h @@ -1745,7 +1745,7 @@ namespace SpecialPointerAuthDiscriminators { const uint16_t AsyncContextParent = 0xbda2; // = 48546 const uint16_t AsyncContextResume = 0xd707; // = 55047 const uint16_t AsyncContextYield = 0xe207; // = 57863 - const uint16_t CancellationNotificationFunction = 0x1933; // = 6451 + const uint16_t CancellationNotificationFunction = 0x2E3F; // = 11839 (TaskPriority, TaskPriority) -> Void const uint16_t EscalationNotificationFunction = 0x7861; // = 30817 const uint16_t AsyncThinNullaryFunction = 0x0f08; // = 3848 const uint16_t AsyncFutureFunction = 0x720f; // = 29199 diff --git a/stdlib/public/Concurrency/Task.cpp b/stdlib/public/Concurrency/Task.cpp index 8fcf079de8c89..25e9a590ec71e 100644 --- a/stdlib/public/Concurrency/Task.cpp +++ b/stdlib/public/Concurrency/Task.cpp @@ -1812,8 +1812,9 @@ swift_task_addPriorityEscalationHandlerImpl( void *context) { void *allocation = swift_task_alloc(sizeof(EscalationNotificationStatusRecord)); + auto unsigned_handler = swift_auth_code(handler, 11839); auto *record = ::new (allocation) - EscalationNotificationStatusRecord(handler, context); + EscalationNotificationStatusRecord(unsigned_handler, context); addStatusRecordToSelf(record, [&](ActiveTaskStatus oldStatus, ActiveTaskStatus& newStatus) { return true;