From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2610:1c1:1:606c::19:2]) by sourceware.org (Postfix) with ESMTPS id 9A29D3858D34 for ; Sat, 20 Apr 2024 20:25:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9A29D3858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=FreeBSD.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9A29D3858D34 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2610:1c1:1:606c::19:2 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713644712; cv=pass; b=hBzh0k2Fz084QDgG0ToxM56zz3GTGew0h/xPaMGw7ft12HIJ2UaxuDOBRLbAk3YL6PVTefbqQ5zYBtrqmsmQn34WjH7vnTDqT1XIB1SGo5g1imWbLJ5bv82A60bC5Pi1lhwHf+yLvDsDsRC9icqqS0UBYl81dyZQHRgxbIN7nIE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1713644712; c=relaxed/simple; bh=aipac1zIDlwOSDPGINdeVgQKRVs4rm6++l8VKSQeqgQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=KSlze0ar6VRz1BGnvVVP03lDkD1oiMpAu9K527jocZHD37JaQkvF/HT9iJU89fCY4tvRS8LVfNUxdvYl0j8Hp1/CWgEZw1IMmS8kuUC3F65/lj692/13c+7mx4pCdffTXCAclQ09lH03dpGbmswI38Ka1cGJwAeYVZkPQgolUQM= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 4VMNKw2rbhz4mtN; Sat, 20 Apr 2024 20:25:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VMNKw22Ctz4WJl; Sat, 20 Apr 2024 20:25:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713644708; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=++6mFYj+zeyveYZhS5p1EALLxqv7AWTPhTwpHcUTZGI=; b=RyaZIloePaslMU2dQxa6nVFVzWw+6WKkSi9LGizBxYvO8TX8zePG+2DZsg3q/dJ+Bq4OZy uT788BUt2xYWOZokKQUf565bGlRIRo3LyZOXMOrskw4z4Sug8WJ3y+ZUbeM2u+eTGhjSKV S3YPeL4vpyDvKnKDpOnIq2FePZNhw9TRekSWYQoH7Cr9/S1JwKbnMseWSnOCRn8Oi6WFEV ZCpilnqoDKuGP+SbEiEu1m2wnfovC87A0DH0VynSc+NBZFbBIBSJxAm+KqkIUQMoZS0hWh zMPi6ZseyWJYNPynre6MQEjQRCPbqX3ywwsN45a/XMtgF6cyJHbjubx0/qkiWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713644708; a=rsa-sha256; cv=none; b=d8ZTYuCwma6WTDvw6kWmOxTWtCIIA5tcIJ0vc7s3ThSm9HECvH6qIjgVPfSR6GzzrlfOFU W/LPYu9AWHDymA8A9a54UJ5X4NPeUt+T2lSQSt1Y8bx61itrgN5Ttjp4R40KOG5hC7AXWi u2OL+ehsTlvKTLCDH1dexJZZNqdLXESSq3WkHn0s8bz1BLDyggwZzaARQjdB0NIYusGD5i X59FbRgKYO6I1x9e0t+GAt0S+svT/35x/nse3cdiTE/JqHTtUVKbY9yv3xakZQgRW701VK 3MMHy6Rm3XDIMisfah8RNxuY3DQAOip5KAG2TqGOzhV7elqZWHuUj/OnGH4L8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713644708; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=++6mFYj+zeyveYZhS5p1EALLxqv7AWTPhTwpHcUTZGI=; b=MJMMqOxMqgMSWqWOaJ3Q60YDV3WMnYDUmKMMlRqC8azbNkG/Ix4wBzEYjHsGin5m73XCZK /6BB/u54l9u296JVADY4Uvn7g9UDvJ4oObfKP66kiwhbCu2AIITwUpXWbItTVs37VEGlih FYSqwBGyTy7SxHLG/Pb33neI8pbOu1ffiLfhqc5sIIGJqg5eEUfj5p64VwiUGzt08CP+qw 7PBtoGnbCmPD79SpUtt9EYgZv7JItC3IoazDawbzFah7d9n+vkPiVMKGis4lv8si375wFI tDH5hdUwhUMrWTDeGD8ZRCNfZ/L+pJ6yFYSsu8loaujUhJhL9DU28NYpJ4WBEw== Received: from [IPV6:2601:644:937f:4c50:3c00:e4c7:d43e:21e8] (unknown [IPv6:2601:644:937f:4c50:3c00:e4c7:d43e:21e8]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VMNKv5kYQzDy7; Sat, 20 Apr 2024 20:25:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <3459b86b-dbba-4890-b2a7-d37b1bde975b@FreeBSD.org> Date: Sat, 20 Apr 2024 13:25:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] Using all three fields of ptid and handling thread events from rs6000-aix-nat.c Content-Language: en-US To: Aditya Kamath1 , Aditya Kamath1 via Gdb-patches , Ulrich Weigand Cc: Sangamesh Mallayya References: From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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