зеркало из https://github.com/mozilla/gecko-dev.git
5841b01411
Sometimes, at least on Linux, DMDFuncs::sSingleton's static initializer (in libxul) was being called before sDMDBridge's (in libdmd). Thus sDMDBridge wasn't constructed yet in the path where its address is taken, passed down through {replace_,}get_bridge to ReplaceMallocBridge::Get, and its mVersion field is read. This patch uses dynamic allocation, following what's done for other globals in the same situation in this file. Also, naming convention fix: leading "s" is for C++ class statics; C-style static globals should be "g". --HG-- extra : rebase_source : 4a6447760555aa11109749c612094ba1694b41f6 |
||
---|---|---|
.. | ||
build | ||
fallible | ||
jemalloc | ||
mozalloc | ||
mozjemalloc | ||
replace | ||
volatile | ||
moz.build |