Open Bug 1845263 Opened 2 years ago Updated 25 days ago

[meta] Remove useless global constructors from libxul

Categories

(Core :: General, enhancement)

enhancement

Tracking

()

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Depends on 5 open bugs)

Details

(Keywords: meta)

Currently libxul has over 300 global constructors on Linux, as counted by

% nm obj-x86_64-pc-linux-gnu/dist/bin/libxul.so | grep _GLOBAL__sub -c
358

It would be nice to investigate if some of those could be removed, as global constructors are triggered on library load, which slows it down.

The clang flag -Wglobal-constructors can be used to easily track those.

Depends on: 1845440
Depends on: 1845441
Depends on: 1845449
Keywords: meta
Summary: Remove useless global constructors from libxul → [meta] Remove useless global constructors from libxul
Depends on: 1854404
Depends on: 1854410
Depends on: 1854490
Depends on: 1854555
Depends on: 1854575
Depends on: 1854969
Depends on: 1855143
Depends on: 1855144
Depends on: 1855145
Depends on: 1855155
Blocks: 1855955
No longer blocks: 1855955
Depends on: 1855955
Type: task → enhancement
Depends on: 1992162
Depends on: 1997809
Depends on: 1997861
Depends on: 1997862
Depends on: 1997863
Depends on: 1997864
Depends on: 1997865
Depends on: 1998397
Depends on: 1998398
Depends on: 1998400
Depends on: 1998401
Depends on: 2011589
You need to log in before you can comment on or make changes to this bug.