This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Replace new/delete with a local variable in ThreadSpecificDtors unit test
ClosedPublic

Authored by kubamracek on Nov 19 2015, 9:12 AM.

Details

Summary

On OS X, this unit test (ThreadSpecificDtors) fails, because the new and delete operators actually call the overridden operators, which end up using TLVs and crash. Since C++'s new and delete is not important in this test, let's just replace them with a local variable. This fixes the test on OS X.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek updated this revision to Diff 40661.Nov 19 2015, 9:12 AM
kubamracek retitled this revision from to [tsan] Replace new/delete with a local variable in ThreadSpecificDtors unit test.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, kcc, samsonov, glider.
dvyukov accepted this revision.Nov 19 2015, 9:27 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Nov 19 2015, 9:27 AM
This revision was automatically updated to reflect the committed changes.