mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
MINOR: debug: use ltid_bit in ha_thread_dump()
Since commit cc7a11ee3 ("MINOR: threads: set the tid, ltid and their bit
in thread_cfg") we ought not use (1UL << thr) to get the group mask for
thread <thr>, but (ha_thread_info[thr].ltid_bit). ha_thread_dump() needs
this.
This commit is contained in:
parent
377e37a80f
commit
38d0712748
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ void ha_backtrace_to_stderr(void)
|
|||
*/
|
||||
void ha_thread_dump(struct buffer *buf, int thr, int calling_tid)
|
||||
{
|
||||
unsigned long thr_bit = 1UL << thr;
|
||||
unsigned long thr_bit = ha_thread_info[thr].ltid_bit;
|
||||
unsigned long long p = ha_thread_ctx[thr].prev_cpu_time;
|
||||
unsigned long long n = now_cpu_time_thread(thr);
|
||||
int stuck = !!(ha_thread_ctx[thr].flags & TH_FL_STUCK);
|
||||
|
|
|
|||
Loading…
Reference in a new issue