Bug 169505 - libwebrtc.dylib contains a global initializer
Summary: libwebrtc.dylib contains a global initializer
Status: RESOLVED DUPLICATE of bug 169973
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-03-10 20:15 PST by mitz
Modified: 2017-03-23 10:26 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***