This is an archive of the discontinued LLVM Phabricator instance.

tsan: add lock free stack pattern test
AcceptedPublic

Authored by alexey-katranov on Sep 27 2021, 7:52 AM.

Details

Summary

Add a set of tests that iterate over possible combinations of
memory orders for lock free stack implementation.

Diff Detail

Event Timeline

alexey-katranov requested review of this revision.Sep 27 2021, 7:52 AM
alexey-katranov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2021, 7:52 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dvyukov accepted this revision.May 20 2022, 4:34 AM
This revision is now accepted and ready to land.May 20 2022, 4:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2022, 4:34 AM

This felt through the cracks, sorry.
The change looks reasonably good to me and I guess it's not good to do nitpicking after such long delay.
I've run clang-format on this, rebased and run tests (passed).

This revision was landed with ongoing or failed builds.May 20 2022, 4:36 AM
This revision was automatically updated to reflect the committed changes.

I think there may be some flakes and the best way to address it for now may be adding a constraint to not run it on PPC.

I think there may be some flakes and the best way to address it for now may be adding a constraint to not run it on PPC.

Unfortunately, I do not know how to add such constraint. Can you please advise me?

hctim added a subscriber: hctim.May 20 2022, 1:08 PM

I think there may be some flakes and the best way to address it for now may be adding a constraint to not run it on PPC.

Unfortunately, I do not know how to add such constraint. Can you please advise me?

Done in https://reviews.llvm.org/rGb517d679dd69a30ed84e9782a2e902cf4284ebc7.

It's still worth understanding why the test fails under TSan, but I've marked it as UNSUPPORTED so it won't run there to unblock the buildbots.

hctim added a comment.May 20 2022, 1:49 PM

Looks like I missed something, probably because 'ppc' isn't a feature recognised by compiler-rt's lit config. Looking.

Looks like I missed something, probably because 'ppc' isn't a feature recognised by compiler-rt's lit config. Looking.

Thank you for unblocking the bots.

saghir added a comment.EditedMay 20 2022, 2:35 PM

Looks like I missed something, probably because 'ppc' isn't a feature recognised by compiler-rt's lit config. Looking.

@hctim Maybe try UNSUPPORTED: ppc64?

hctim added a comment.May 20 2022, 2:39 PM

Looks like I missed something, probably because 'ppc' isn't a feature recognised by compiler-rt's lit config. Looking.

@hctim Maybe try UNSUPPORTED: ppc64?

The bots (https://lab.llvm.org/buildbot/#/builders/105/builds/25721) are coming back online after https://reviews.llvm.org/rGde066267254acb97424bea008195d47de689aca4.

we're seeing this crop up on Fuchsia's Clang CI for AArch64 too.

Sorry for the late notification. That builder has been red for a while, so I missed that a new issue was happening.

You can see the original breakage here: https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-arm64/b8813646020549110273/overview

It's still an issue on the latest completed build: https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-arm64/b8813607549944786001/overview

that build goes up to https://reviews.llvm.org/D125730 (59726668f1dc) so I think its still an issue

paulkirth reopened this revision.May 20 2022, 5:23 PM

I've reverted this for now, since I assume everyone is gone for the weekend, and our bots on AArch64 Linux are still showing problems with this test.

@hctim I reverted the dependent change you made as well.

This revision is now accepted and ready to land.May 20 2022, 5:23 PM
paulkirth requested changes to this revision.May 20 2022, 5:24 PM
This revision now requires changes to proceed.May 20 2022, 5:24 PM
This revision is now accepted and ready to land.May 20 2022, 5:25 PM