Skip to content

Instantly share code, notes, and snippets.

@danslo
Created June 27, 2013 16:56
Show Gist options
  • Save danslo/5878185 to your computer and use it in GitHub Desktop.
Save danslo/5878185 to your computer and use it in GitHub Desktop.
diff --git hphp/runtime/base/thread_init_fini.cpp hphp/runtime/base/thread_init_fini.cpp
index 6826c69..a84b63b 100644
--- hphp/runtime/base/thread_init_fini.cpp
+++ hphp/runtime/base/thread_init_fini.cpp
@@ -63,7 +63,9 @@ void init_thread_locals(void *arg /* = NULL */) {
g_context.getCheck();
AsioSession::Init();
s_hasRenamedFunction.getCheck();
+#ifndef NO_HARDWARE_COUNTERS
HardwareCounter::s_counter.getCheck();
+#endif
for (InitFiniNode *in = extra_init; in; in = in->next) {
in->func();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment