- WTF::double_conversion::initialize();
- WTF::initializeThreading();
- GlobalJSLock::initialize();
- Options::initialize();
- if (Options::recordGCPauseTimes())
- HeapStatistics::initialize();
+ static std::once_flag initializeThreadingOnceFlag;
+
+ std::call_once(initializeThreadingOnceFlag, []{
+ WTF::double_conversion::initialize();
+ WTF::initializeThreading();
+ GlobalJSLock::initialize();
+ Options::initialize();
+ if (Options::recordGCPauseTimes())
+ HeapStatistics::initialize();