2016-09-16 07:35:14 +03:00
|
|
|
#ifndef mozilla_StackWalk_windows_h
|
|
|
|
#define mozilla_StackWalk_windows_h
|
|
|
|
|
|
|
|
#include "mozilla/Types.h"
|
|
|
|
|
2018-12-19 23:14:17 +03:00
|
|
|
#if defined(_M_AMD64) || defined(_M_ARM64)
|
2016-09-16 07:35:14 +03:00
|
|
|
/**
|
|
|
|
* Allow stack walkers to work around the egregious win64 dynamic lookup table
|
|
|
|
* list API by locking around SuspendThread to avoid deadlock.
|
|
|
|
*
|
|
|
|
* See comment in StackWalk.cpp
|
|
|
|
*/
|
2017-05-03 19:10:48 +03:00
|
|
|
struct MOZ_RAII AutoSuppressStackWalking {
|
|
|
|
MFBT_API AutoSuppressStackWalking();
|
|
|
|
MFBT_API ~AutoSuppressStackWalking();
|
|
|
|
};
|
2016-09-16 07:35:14 +03:00
|
|
|
|
2017-04-19 01:52:04 +03:00
|
|
|
MFBT_API void RegisterJitCodeRegion(uint8_t* aStart, size_t size);
|
|
|
|
|
|
|
|
MFBT_API void UnregisterJitCodeRegion(uint8_t* aStart, size_t size);
|
2017-05-03 19:10:48 +03:00
|
|
|
#endif // _M_AMD64
|
2017-04-19 01:52:04 +03:00
|
|
|
|
2016-09-16 07:35:14 +03:00
|
|
|
#endif // mozilla_StackWalk_windows_h
|