зеркало из https://github.com/mozilla/gecko-dev.git
3694eeda43
We had a thread-local varialbe `ModuleLoadFrame::sTopFrame` to track the topmost stack frame of `LdrLoadDll`. However, our hook function `patched_LdrLoadDll` can be called even before TLS is initialized. In such a case, accessing `sTopFrame` causes AV. This patch introduces `SafeThreadLocal` to safely access a thread-local varialbe. If TLS is not initialized, it falls back to a global variable because in that early stage there is only a single thread running. Differential Revision: https://phabricator.services.mozilla.com/D55870 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
baseprofiler | ||
build | ||
dllservices | ||
linker | ||
misc | ||
static | ||
tests | ||
moz.build |