forked from enlightenment/efl
eina debug - don't try and collect stats on more than a million threads
sanity check... just in case.
This commit is contained in:
parent
b2809026bb
commit
758e7d3562
|
@ -232,6 +232,8 @@ _trace_cb(void *data EINA_UNUSED)
|
|||
|
||||
// take a lock on grabbing thread debug info like backtraces
|
||||
eina_spinlock_take(&_eina_debug_thread_lock);
|
||||
// too many threads (over 1 million) !!!!
|
||||
if (_eina_debug_thread_active_num > (1024 * 1024)) goto err;
|
||||
// reset our "stack" of memory se use to dump thread info into
|
||||
_eina_debug_chunk_tmp_reset();
|
||||
// get an array of pointers for the backtrace array for main + th
|
||||
|
|
Loading…
Reference in New Issue