Bug 1756407 - Avoid NS_IsMainThread() during exception handling r=gsvelto
commit80d49e2615a809f4a34820f18137ae5fa2ef1bc8
authorAlexandre Lissy <lissyx+mozillians@lissyx.dyndns.org>
Fri, 29 Apr 2022 13:44:12 +0000 (29 13:44 +0000)
committerAlexandre Lissy <lissyx+mozillians@lissyx.dyndns.org>
Fri, 29 Apr 2022 13:44:12 +0000 (29 13:44 +0000)
tree706225e18ddd8922d8e31f243c685d69df0c6d12
parent68da11d927fa2d71e04dc337734357ee8668aea8
Bug 1756407 - Avoid NS_IsMainThread() during exception handling r=gsvelto

Thread local variables might be doing lazy allocation in our back, so
querying for NS_IsMainThread() within an exception handler would trigger
memory allocation which in turn will deadlock our process.

Differential Revision: https://phabricator.services.mozilla.com/D144954
toolkit/crashreporter/nsExceptionHandler.cpp