Commit 57a00d50 authored by Hans Fugal's avatar Hans Fugal Committed by Nicholas Ormrod

Fix bizarre optimization

Summary:
I have no idea why the compiler is gettings its britches in a bunch because a unit test has a predictable output. Really, gcc?!

But whatever, avoiding inlining by putting it in the cpp file solves it.

Test Plan: fbmake runtests_opt

Reviewed By: davejwatson@fb.com

Subscribers: net-systems@, fugalh, exa

FB internal diff: D1405811

Tasks: 4591823
parent 339a9d37
......@@ -94,4 +94,11 @@ void ManualExecutor::wait() {
}
}
void ManualExecutor::advanceTo(TimePoint const& t) {
if (t > now_) {
now_ = t;
}
run();
}
}} // namespace
......@@ -76,12 +76,7 @@ namespace folly { namespace wangle {
/// Advance the clock to this absolute time. If t is <= now(),
/// this is a noop.
void advanceTo(TimePoint const& t) {
if (t > now_) {
now_ = t;
}
run();
}
void advanceTo(TimePoint const& t);
TimePoint now() override { return now_; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment