This is an archive of the discontinued LLVM Phabricator instance.

[NativeProcessLinux] fold ThreadStateCoordinator into NPL
ClosedPublic

Authored by labath on Apr 27 2015, 9:22 AM.

Details

Summary

Since all TSC operations are now executed synchronously, TSC has become a little more than a
messenger between different parts of NativeProcessLinux. Therefore, the reason for its existance
has disappeared.

This commit moves the contents of the TSC into the NPL class. This will enable us to remove all
the boilerplate code in NPL (as it stands now, this is most of the class), which I plan to do in
subsequent commits.

Unfortunately, this also means we will lose the unit tests for the TSC. However, since the size
of the TSC has diminished, the unit tests were not testing much at this point anyway, so it's not
a big loss.

No functional change.

Diff Detail

Event Timeline

labath updated this revision to Diff 24482.Apr 27 2015, 9:22 AM
labath retitled this revision from to [NativeProcessLinux] fold ThreadStateCoordinator into NPL.
labath updated this object.
labath edited the test plan for this revision. (Show Details)
labath added reviewers: vharron, chaoren.
labath added a subscriber: Unknown Object (MLST).
labath updated this revision to Diff 24539.Apr 28 2015, 4:18 AM

Rebasing...

vharron edited edge metadata.Apr 28 2015, 10:43 AM

Looks good. What is the affect on flakey tests? Have you run dosep 100x? Does it change the behavior at all?

chaoren accepted this revision.Apr 28 2015, 4:51 PM
chaoren edited edge metadata.

LGTM. Just make sure you remove the references to the coordinator in the comments.

This revision is now accepted and ready to land.Apr 28 2015, 4:51 PM
labath updated this revision to Diff 24627.Apr 29 2015, 6:22 AM
labath edited edge metadata.

Rebasing on top of D9254

This is a non-functional change which merely enables further code simplification, and as such it
should not affect the tests in any way. The interesting part is in D9227. I am now running the
tests for it and will post results when I have them.

This revision was automatically updated to reflect the committed changes.
unittests/Plugins/CMakeLists.txt