void init_thread_locals(void *arg /* = NULL */) {
  ObjectData::GetMaxId();
  ResourceData::GetMaxResourceId();
  ServerStats::GetLogger();
  preg_get_pcre_cache();
  zend_get_bigint_data();
  zend_get_rand_data();
  get_server_note();
  g_persistentObjects.getCheck();
  Sweepable::GetSweepData();
  MemoryManager::TheMemoryManager().getCheck();
  InitAllocatorThreadLocal();
  get_global_variables_check();
  ThreadInfo::s_threadInfo.getCheck();
  g_context.getCheck();
  icu_get_checks();
}
Beispiel #2
0
// Beware: this is actually called once per request, not as the name suggests
void init_thread_locals(void *arg /* = NULL */) {
  ServerStats::GetLogger();
  zend_get_bigint_data();
  zend_get_rand_data();
  get_server_note();
  MemoryManager::TlsWrapper::getCheck();
  if (ThreadInfo::s_threadInfo.isNull()) {
    // Only call init() when there isn't a s_threadInfo already
    ThreadInfo::s_threadInfo.getCheck()->init();
  }
  g_context.getCheck();
  AsioSession::Init();
  HardwareCounter::s_counter.getCheck();
  Extension::ThreadInitModules();
  for (InitFiniNode *in = extra_init; in; in = in->next) {
    in->func();
  }
}
Beispiel #3
0
void init_thread_locals(void *arg /* = NULL */) {
  Sweepable::InitSweepableList();
  ObjectData::GetMaxId();
  ResourceData::GetMaxResourceId();
  ServerStats::GetLogger();
  zend_get_bigint_data();
  zend_get_rand_data();
  get_server_note();
  g_persistentObjects.getCheck();
  MemoryManager::TlsWrapper::getCheck();
  ThreadInfo::s_threadInfo.getCheck();
  g_context.getCheck();
  AsioSession::Init();
  HardwareCounter::s_counter.getCheck();
  for (InitFiniNode *in = extra_init; in; in = in->next) {
    in->func();
  }
}
void init_thread_locals(void *arg /* = NULL */) {
  ObjectData::GetMaxId();
  ResourceData::GetMaxResourceId();
  ServerStats::GetLogger();
  zend_get_bigint_data();
  zend_get_rand_data();
  get_server_note();
  g_persistentObjects.getCheck();
  Sweepable::GetSweepData();
  MemoryManager::TlsWrapper::getCheck();
  InitAllocatorThreadLocal();
  RefData::AllocatorType::getCheck();
  get_global_variables_check();
  ThreadInfo::s_threadInfo.getCheck();
  g_context.getCheck();
  icu_get_checks();
  s_hasRenamedFunction.getCheck();
  Util::HardwareCounter::s_counter.getCheck();
  for (InitFiniNode *in = extra_init; in; in = in->next) {
    in->func();
  }
}
void init_thread_locals(void *arg /* = NULL */) {
  ObjectData::GetMaxId();
  ResourceData::GetMaxResourceId();
  ServerStats::GetLogger();
  preg_get_pcre_cache();
  zend_get_bigint_data();
  zend_get_rand_data();
  get_server_note();
  g_persistentObjects.getCheck();
  Sweepable::GetSweepData();
  MemoryManager::TheMemoryManager().getCheck();
  InitAllocatorThreadLocal();
  get_global_variables_check();
  ThreadInfo::s_threadInfo.getCheck();
  g_context.getCheck();
  icu_get_checks();
  s_hasRenamedFunction.getCheck();
  if (has_eval_support) {
    Eval::VariableEnvironment::InitTempStack();
    ArgArray::s_stack.getCheck();
  }
}