Message ID | 20230701212840.330022-1-apinski@marvell.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11252803vqr; Sat, 1 Jul 2023 14:29:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fut973FcPAg44SpZj6XUyJ+fm6izDdJ+h8QN8TaNos1hNm+zpmS86iI8rG0qShlZalF26 X-Received: by 2002:a17:907:6e1b:b0:98e:1c4b:10e2 with SMTP id sd27-20020a1709076e1b00b0098e1c4b10e2mr8051713ejc.20.1688246980026; Sat, 01 Jul 2023 14:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688246980; cv=none; d=google.com; s=arc-20160816; b=cHgJGATAz/bPvuyyQ+dVssXRMAWAfxRMUnIcu0tDTmG+Wtx3tVBoQIgCGtabdhXUft hWfrGHegqzqgHaGgZdHdlghqFWeVmMtsVyRD5XUipYoWffw+3B9Ak4cHCL+BoUOyT361 ZWtCNI7I7wp9CQjzEhbQeIVVz1Xw6EjOcWzh9h40c2dhGqctKOA+pburygAWAVlV1AJh /a9mLalKe5AT2zQ0kYX878yOrcrP6huAlKserbeVMjFFWb8OSyYS4vaZ1069USS5BCp3 GUxD4NV0/BwoSOHeaNUhCa6oq3pPAH0i++UyVUx9rjmf5jZgOJ3M3QlPQ9ZrhMr/TQXi MaIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=SbMsOv8HaQ5f/jkwngCHsc1dWCWq/z3mCvmpJTgztXo=; fh=XbcmRug6/SzczusyoNU1I7Lu5oY0AN2u0mWDzKoxdSs=; b=KD9S59j2R+5b91qkBpwoirLcTqBOtA3F4i3uhWy1b+QuMu/R67jDA7MxO7umCtLU31 ImF4pymYUZMIOfudbezUTURclTAYaWycTlCFuX5nEhP+sgAzwOjKilkFXEkE+Hb6H1cL Lx2JweFiJtGsiBXSMi6tgxkgyq7sEwos6OkSI4e4fdUCaQ62QElRgWYrgo4X4kOkXZCj MFUrHwsgd/7pP11rroyxEWykpNb4NMnIloaCW6Ud5Dr+ad6lzlvmirEA/PmE/fDDJUR4 1mI6blOTh8cS/C1dYjmNMc2dgulxzWsBz7A6dhAKgrvJeMZZo8yi/Bgta1waEXfxQgbA +DWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YPKre5I5; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gs21-20020a170906f19500b009932537925asi875086ejb.550.2023.07.01.14.29.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 14:29:40 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YPKre5I5; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A4E7C385842C for <ouuuleilei@gmail.com>; Sat, 1 Jul 2023 21:29:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4E7C385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688246978; bh=SbMsOv8HaQ5f/jkwngCHsc1dWCWq/z3mCvmpJTgztXo=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=YPKre5I5rhMMUF9P+uFCNgXYLMoqapUvpMWf1KFu7A9Tt3eEljOEfvpOtMmUJmxG1 go6U8z8+tjCMcS7EkBfX44L5ev50I2u4GJVDFNpRunLEhUNbw5ncWHxbS2k8GF9p9t M9fldhg2+UY+tQ9sU5CED0GJHvMQxBAysD00whYc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id E81803858D35 for <gcc-patches@gcc.gnu.org>; Sat, 1 Jul 2023 21:28:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E81803858D35 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 361KpMWj010984 for <gcc-patches@gcc.gnu.org>; Sat, 1 Jul 2023 14:28:50 -0700 Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3rjhgn97h1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Sat, 01 Jul 2023 14:28:50 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 1 Jul 2023 14:28:49 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sat, 1 Jul 2023 14:28:49 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.187]) by maili.marvell.com (Postfix) with ESMTP id A89D73F7048; Sat, 1 Jul 2023 14:28:48 -0700 (PDT) To: <gcc-patches@gcc.gnu.org> CC: Andrew Pinski <apinski@marvell.com> Subject: [PATCH] Use chain_next on eh_landing_pad_d for GTY (PR middle-end/110510) Date: Sat, 1 Jul 2023 14:28:40 -0700 Message-ID: <20230701212840.330022-1-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: YKUAbjmmovIsW8Xm-wfeUTYJX4tfLkLN X-Proofpoint-GUID: YKUAbjmmovIsW8Xm-wfeUTYJX4tfLkLN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-01_17,2023-06-30_01,2023-05-22_02 X-Spam-Status: No, score=-14.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Andrew Pinski via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Andrew Pinski <apinski@marvell.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770255265228536480?= X-GMAIL-MSGID: =?utf-8?q?1770255265228536480?= |
Series |
Use chain_next on eh_landing_pad_d for GTY (PR middle-end/110510)
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Andrew Pinski
July 1, 2023, 9:28 p.m. UTC
The backtrace in the bug report suggest there is a running out of stack during GC collection, because of a long chain of eh_landing_pad_d. This might fix that by adding chain_next onto eh_landing_pad_d's GTY marker. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: PR middle-end/110510 * except.h (struct eh_landing_pad_d): Add chain_next GTY. --- gcc/except.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sat, Jul 1, 2023 at 11:29 PM Andrew Pinski via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > The backtrace in the bug report suggest there is a running out of > stack during GC collection, because of a long chain of eh_landing_pad_d. > This might fix that by adding chain_next onto eh_landing_pad_d's GTY marker. > > OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. OK. Richard. > gcc/ChangeLog: > > PR middle-end/110510 > * except.h (struct eh_landing_pad_d): Add chain_next GTY. > --- > gcc/except.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/except.h b/gcc/except.h > index 378a9e4cb77..173b0f026db 100644 > --- a/gcc/except.h > +++ b/gcc/except.h > @@ -66,7 +66,7 @@ enum eh_region_type > /* A landing pad for a given exception region. Any transfer of control > from the EH runtime to the function happens at a landing pad. */ > > -struct GTY(()) eh_landing_pad_d > +struct GTY((chain_next("%h.next_lp"))) eh_landing_pad_d > { > /* The linked list of all landing pads associated with the region. */ > struct eh_landing_pad_d *next_lp; > -- > 2.31.1 >
diff --git a/gcc/except.h b/gcc/except.h index 378a9e4cb77..173b0f026db 100644 --- a/gcc/except.h +++ b/gcc/except.h @@ -66,7 +66,7 @@ enum eh_region_type /* A landing pad for a given exception region. Any transfer of control from the EH runtime to the function happens at a landing pad. */ -struct GTY(()) eh_landing_pad_d +struct GTY((chain_next("%h.next_lp"))) eh_landing_pad_d { /* The linked list of all landing pads associated with the region. */ struct eh_landing_pad_d *next_lp;