From: John Baldwin <jhb@FreeBSD.org>
To: Aditya Kamath1 <Aditya.Kamath1@ibm.com>,
Aditya Kamath1 via Gdb-patches <gdb-patches@sourceware.org>,
Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Cc: Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
Subject: Re: [RFC] Using all three fields of ptid and handling thread events from rs6000-aix-nat.c
Date: Sat, 20 Apr 2024 13:25:06 -0700 [thread overview]
Message-ID: <3459b86b-dbba-4890-b2a7-d37b1bde975b@FreeBSD.org> (raw)
In-Reply-To: <CH2PR15MB35444C5B3DD8C19EFB6FD1CCD60F2@CH2PR15MB3544.namprd15.prod.outlook.com>
On 4/17/24 3:36 AM, Aditya Kamath1 wrote:
> I am planning to use
> “status = pthdb_pthread_state (data->pd_session, pdtid, &state);”
>
> And if the state is PST_TERM then I want to remove the thread vector from the pbuf list and make sure pcount is also reduced. This can fix the issue.
This sounds good to me. I would also recommend fixing your ::thread_is_alive
method to treat a thread whose state is PST_TERM as dead (if you have a
thread_is_alive method, if you don't have such a method, I would recommend
adding one).
--
John Baldwin
next prev parent reply other threads:[~2024-04-20 20:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-15 14:37 Aditya Kamath1
2024-04-15 17:36 ` John Baldwin
2024-04-17 10:36 ` Aditya Kamath1
2024-04-17 18:48 ` Ulrich Weigand
2024-04-20 20:25 ` John Baldwin [this message]
2024-04-16 8:52 ` Ulrich Weigand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3459b86b-dbba-4890-b2a7-d37b1bde975b@FreeBSD.org \
--to=jhb@freebsd.org \
--cc=Aditya.Kamath1@ibm.com \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=sangamesh.swamy@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).