Skip to content

Conversation

@thetruestblue
Copy link

…interceptors

Spinlock symbols are removed from headers in MacOS version 10.12 and greater. Even though they are deprecated, the symbols remain available on the system.

The TSAN interceptors currently cause a build failure after this version because of the change in availability of the symbol.

We want to continue intercepting the symbols available on the OS. So we add forward declarations so that the TSAN interceptors can build.

This is tested with the existing osspinlock_norace test.

Differential Revision: https://reviews.llvm.org/D146537

(cherry picked from commit ae484c2)

…interceptors

Spinlock symbols are removed from headers in MacOS version 10.12 and greater.
Even though they are deprecated, the symbols remain available on the system.

The TSAN interceptors currently cause a build failure after this version because
of the change in availability of the symbol.

We want to continue intercepting the symbols available on the OS.
So we add forward declarations so that the TSAN interceptors can build.

This is tested with the existing osspinlock_norace test.

Differential Revision: https://reviews.llvm.org/D146537

(cherry picked from commit ae484c2)
@yln
Copy link

yln commented Mar 23, 2023

@thetruestblue
For cherry-picks for changes like these for which we already approved elsewhere you don't need request PR approval again as long as the automation lets you merge it without.

Screenshot 2023-03-23 at 1 48 34 PM

@yln
Copy link

yln commented Mar 23, 2023

@swift-ci Please test

@thetruestblue thetruestblue merged commit 442d36f into stable/20221013 Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants