зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1902965 - Use define for MAX_NATIVE_FRAMES in C r=profiler-reviewers,aabh
Differential Revision: https://phabricator.services.mozilla.com/D213912
This commit is contained in:
Родитель
54db3f82e9
Коммит
605c981fb0
|
@ -12,7 +12,11 @@
|
|||
// Setting MAX_NATIVE_FRAMES too high risks the unwinder wasting a lot of time
|
||||
// looping on corrupted stacks.
|
||||
|
||||
#ifdef __cplusplus
|
||||
static const size_t MAX_NATIVE_FRAMES = 1024;
|
||||
#else
|
||||
# define MAX_NATIVE_FRAMES 1024
|
||||
#endif
|
||||
|
||||
struct NativeStack {
|
||||
void* mPCs[MAX_NATIVE_FRAMES];
|
||||
|
|
Загрузка…
Ссылка в новой задаче