Skip to content

Commit a7a9b0a

Browse files
authored
Merge pull request #81755 from ktoso/wip-correct-signing-num
[Concurrency] Correct the signing of priority escalation handler
2 parents 0f312ad + 97a4904 commit a7a9b0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/ABI/MetadataValues.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 = 0x2E3F; // = 11839 (TaskPriority, TaskPriority) -> Void
1748+
const uint16_t CancellationNotificationFunction = 0xf73; // = 3955 (TaskPriority, TaskPriority) -> Void
17491749
const uint16_t EscalationNotificationFunction = 0x7861; // = 30817
17501750
const uint16_t AsyncThinNullaryFunction = 0x0f08; // = 3848
17511751
const uint16_t AsyncFutureFunction = 0x720f; // = 29199

stdlib/public/Concurrency/Task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ swift_task_addPriorityEscalationHandlerImpl(
18171817
void *context) {
18181818
void *allocation =
18191819
swift_task_alloc(sizeof(EscalationNotificationStatusRecord));
1820-
auto unsigned_handler = swift_auth_code(handler, 11839);
1820+
auto unsigned_handler = swift_auth_code(handler, 3955);
18211821
auto *record = ::new (allocation)
18221822
EscalationNotificationStatusRecord(unsigned_handler, context);
18231823

0 commit comments

Comments
 (0)