From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Merging scratch/no-purespace to remove unexec and purespace Date: Sun, 22 Dec 2024 18:09:08 +0100 Message-ID: References: <87zfku6ra9.fsf@gmail.com> <87seql7a3o.fsf@gmail.com> <87o71553yf.fsf@gmail.com> <87jzbsgefi.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16420"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , Stefan Kangas , Helmut Eller , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 22 18:09:50 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tPPSf-00044T-Ms for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Dec 2024 18:09:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPPS7-00026G-GB; Sun, 22 Dec 2024 12:09:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPPS5-000266-BA for emacs-devel@gnu.org; Sun, 22 Dec 2024 12:09:13 -0500 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPPS3-0008N9-Hn for emacs-devel@gnu.org; Sun, 22 Dec 2024 12:09:13 -0500 Original-Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-aa67f31a858so615988266b.2 for ; Sun, 22 Dec 2024 09:09:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734887349; x=1735492149; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=X7lJGD22mtI+/jVMy+iOHvPXfYXKJ+6G0yKpg6IOkd4=; b=VU0Qv45xfaPCsy2jawPLFF+qixmpfUqnAAW3HeH0UOcEStA9B7TP+BGRF5QVZqEbKg t6Fr1/tcVFY1Ldp1/edI+RvyHfagwwoqPbxJ9p+ImKyuc3xhsBs65Qnze+U0FVnN2G94 oGQ7cZNI04OXKxpJukAjrwJeYFkZWNw5s9aMecoD6q9DFYEOTJmJfbMgnfsguQ/QtLrD guxc6Zar7rDV08ZJs1sxs3tQ3FuUmjVj2Dmwt+eHF4CchBqa1zVFfsJ0owCqSycqOMVs FCJeNB5AqiPxvv5XHTabc+ZFknqbcbYOlY1RndBDsopr+hYVdv6Jd0n4U2fFUw4UvhY1 sOHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734887349; x=1735492149; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=X7lJGD22mtI+/jVMy+iOHvPXfYXKJ+6G0yKpg6IOkd4=; b=HuOG70h3JNHOKMlLibS6dzflHiarrTbeJrLAE3KGJ1/y9E0GPqlOKpLl4h4Vr5fs+w l3KnMNVYgsHAHiPMEpfC0Cm3uuRaJQ5nnsvgLFL89AnOIaGhT0IACPqq2nG42msX8Pog gHl5xgqQAeiz5J3zOVZTQlRibvlcxRrvMyzjz6YcfU7KcJsU7LQnowZGo+XBJALt0l0+ MY8hBOFQf3njrPmXN0F/cAgwl1jkDPpzWRk7nPQa16NG8k+lK++dKVzoTz6je2UwNWnj 3xZ/4VoDvluX31gNztsOb1NXfsvWJHqsFcuJLUGhjrl8u4ArYF4G4T/4pUQ8RgfDWk4R X3/w== X-Forwarded-Encrypted: i=1; AJvYcCUws+bCRf+tntynoC28xD3JxDL8v0sFJPByVQCkFTUl9YloEnwBhCxEU/BMmnJQ+UkSfuku/UIq71Ynkg==@gnu.org X-Gm-Message-State: AOJu0YyCOalk7epdupvU9rNH8sZRg7Tu1hSrmLJnUz1pLIFytN2H2+l3 vBAbTTFIy0ijgKaSQdlwDFH7lI1lC7tpt3AVslI8NdieJ1p5CpbKrRKnhg== X-Gm-Gg: ASbGnctBGyWw2UkngrVpePQmx46iV87ypt6GcgV1fmy7TRr3Jtf42whunShv2EGIX6v 38ZkiELzL9wSxdcybJjlB/ShwSriskJWaI5YgaEwuZCrrk4q0XwwhRjzysEx8sEBV4n1cxnfrmT +MzKM1dsgBDqzlJ+Q8c9Lj2OgoaC0t2tpdtU68DQYScmlWqpEpoLSFZgf+kW0jRABcSJ5XeWpzr Wk373V3uacr0fvxpAuN8yCwEQF11Uo0VYBC9DCsN8F6IagQUk/inKtmaf3u+V7uBI3dn1ArC6YG iiano52FbZuiRAk3el3SlKm1eutRhwZTqvitGl4Em1q3kshiPtooa+lhgsuXsh77aw== X-Google-Smtp-Source: AGHT+IEbUuANZ2JppLdFvC3CtqWP41O8MJz9mWl/UWEyzbF8B3AAorRbbMQdnFqhpcZLlBIuf+GkAg== X-Received: by 2002:a17:907:7e8d:b0:aa6:87e8:1cff with SMTP id a640c23a62f3a-aac2ad88faamr803971866b.24.1734887349248; Sun, 22 Dec 2024 09:09:09 -0800 (PST) Original-Received: from pro2 (p200300e0b71f6700b0196211433a3436.dip0.t-ipconnect.de. [2003:e0:b71f:6700:b019:6211:433a:3436]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0e8954adsm413181666b.64.2024.12.22.09.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 09:09:08 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sun, 22 Dec 2024 10:51:39 -0500") Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326866 Archived-At: Stefan Monnier writes: >> My idea is this: we add an extra mark bit area to the pdumper file for >> objects which we know to be "tenured": i.e. objects that we'll treat as >> immortal, but for which we also know that all referenced objects will >> also be "tenured", or static. > > IIUC this sounds like a kind of generational GC, except that promotion > to the "tenured" set is made somewhat visible instead of being 100% internal. > >> If we write to such an object, we clear the bit, and put it on a special >> set to maintain its tenure (it'd be nicer to simply set another bit, but >> non-MPS pdumper cannot do so). This should happen rarely, but it's >> better than the current CHECK_IMPURE thing. > > If my understanding above is correct, then the > `CHECK_IMPURE/check_writable` is what we usually call "write barrier", > and the "special set" above is what we usually call the "remembered set". > Same understanding here.