Skip to content

Move barrier macros from to - #3124

Merged
Stephan T. Lavavej (StephanTLavavej) merged 7 commits into
microsoft:mainfrom
frederick-vs-ja:move-barrier-macros
Oct 24, 2022
Merged

Stephan T. Lavavej (StephanTLavavej) merged 7 commits into
microsoft:mainfrom
frederick-vs-ja:move-barrier-macros

Conversation

@frederick-vs-ja

@frederick-vs-ja A. Jiang (frederick-vs-ja) commented Sep 23, 2022 •

Copy link
Copy Markdown
Contributor

Towards #3048.

Matt Stephanson (@MattStephanson) Charlie Barto (@barcharcraz)

I think we can include in locale0.cpp once this PR gets merged as has been made a core header, and avoid the third copy of these macro definitions. This should have no undesired impact on the size of import library.

I guess these macros should still be #undefed in , so I copied the comments in with modifications.

The separated #undef directives in are being removed.

But I guess they should be still `#undef`ed in ``.
@frederick-vs-ja
A. Jiang (frederick-vs-ja) requested a review from a team as a code owner September 23, 2022 07:22
Strangely, some failures occured in formerly verified portions.
Comment thread stl/inc/xatomic.h Outdated
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the enhancement Something can be improved label Sep 25, 2022
@strega-nil-ms

Copy link
Copy Markdown
Contributor

I really don't like this split of the #define and the #undef...

@barcharcraz

Copy link
Copy Markdown
Contributor

The lack of undefs would normally break what's in vcruntime, however, that stuff is all C only, and the header will #error in C++ mode, so I think it's OK.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change; however, we should probably avoid making the stray formatting changes (approved anyways as it's trivial to revert them if they end up getting into main)

Comment thread stl/inc/atomic
@barcharcraz Charlie Barto (barcharcraz) removed their assignment Oct 17, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 61be383 into microsoft:main Oct 24, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for reorganizing this atomics code! ☢️ 😹 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants