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
Keywords: InRadar
Depends on:
Reported: 2017-03-10 20:15 PST by mitz
Modified: 2017-03-23 10:26 PDT (History)
4 users (show)

See Also:


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__

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
Comment 2 Alex Christensen 2017-03-23 10:26:48 PDT

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