mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
359fc4a133
This CL adds code to check if the current thread holds the DLL loader lock. This code can be used to enforce the requirement that certain parts of crashpad, such as process creation are not done during calls to DllMain which can lead to deadlocks and crashes. Only one check is current enforced, in client process creation, and only in debug builds. Bug: crashpad: 316 Change-Id: I5757a264bbf28ce2ab88a0cd7ac9481e46428c17 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1945993 Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Scott Graham <scottmg@chromium.org> Commit-Queue: James Forshaw <forshaw@chromium.org>