Bug 169505

Summary: libwebrtc.dylib contains a global initializer
Product: WebKit Reporter: mitz
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: achristensen, joepeck, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description mitz 2017-03-10 20:15:56 PST
libwebrtc.dylib contains a global initializer:

$ nm -j libwebrtc.dylib | fgrep __GLOBAL__
__GLOBAL__sub_I_logging.cc

This appears to be the initializer for g_log_crit and LogMessage::streams_ in webrtc/base/logging.cc

These things should be initialized lazily so that not every executable that links against WebKit pays the launch-time cost of initializing them.
Comment 1 Radar WebKit Bug Importer 2017-03-10 20:25:49 PST
<rdar://problem/30989647>
Comment 2 Alex Christensen 2017-03-23 10:26:48 PDT

*** This bug has been marked as a duplicate of bug 169973 ***