The Windows implementation of debug_backtrace_capture has a limiation
of max 62 frames in total. Subtract a start-frame of 1 and the wrapping
functions frame, and we land at 60.
So let's lower this number on Windows to avoid triggering an assert.
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5497>
#include "util/u_string.h"
#include "util/u_hash_table.h"
#include "os/os_thread.h"
+#include "pipe/p_config.h"
int debug_refcnt_state;
}
+#if defined(PIPE_OS_WINDOWS)
+#define STACK_LEN 60
+#else
#define STACK_LEN 64
+#endif
/**
* Log a reference count change to the log file (if enabled).