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: MPS codegen Date: Sat, 15 Jun 2024 11:27:43 +0200 Message-ID: References: <87y176d16h.fsf@gmail.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14172"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , acorallo@gnu.org, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 15 11:29:02 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 1sIPiY-0003XX-Dk for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Jun 2024 11:29:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIPhZ-0004cp-3B; Sat, 15 Jun 2024 05:28:01 -0400 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 1sIPhY-0004cM-17 for emacs-devel@gnu.org; Sat, 15 Jun 2024 05:28:00 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIPhW-00083l-9o; Sat, 15 Jun 2024 05:27:59 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a6ef8bf500dso332267866b.0; Sat, 15 Jun 2024 02:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718443675; x=1719048475; darn=gnu.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=2rAejuKqPPoV/Z688/U7dPV1YYjxOfscV9xOir78kEg=; b=ZcvyNULvGHZ1Yo3smtiPfl4ORsfByKgmrRWMqnlIiciigD+WWxsyDbyhtUGAibEASA Zl4y50+Te50yHcMTaZIkl8nSD5Y54osjzkIcrJJMLr+Sjpf9OgUCBpBuRjn8K/PjWFRw kDLtKmwIoVy2nGTSzu992m/4+VhtWa6zJV+tWM48EHblRoF5rId/oH707pqVrUntNJdZ sSFuKG8v55N/8p/Wb7+be3D7CH5PFJ0AfvRGMViSIGvsHIOzNV2dPJb1ycwXlxzegCnm 2mUISahS4kJ56D4wxpmGMZ0ZKbLbOstev0gPjbosinu9HzPrOPjrzPCiq7EtzoWE8hew +BeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718443675; x=1719048475; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2rAejuKqPPoV/Z688/U7dPV1YYjxOfscV9xOir78kEg=; b=VduJfON9rrYszePqM0CHH+qzJMiLW1WVpo5r3iq3v5NNEo9mJ7EXq5e70AsfX0qngw pl9X0EbdTnUZJRjW7PmcnfmQWhfhuPno+UGoueu9ZECY0YDpOizqx6oPTxSxxgCvuLty odF475FdlqdqJfiahbjsvSZ0MGIetzoB5yEHu7TnddTYqU+FzuNtDeZgUXu0N6VKktSb Vcg/323ilodeO3r9SnGffZKJ0EEa+2Bi9jtSOGP+OHitKLTaNx/AFNyvRT8F4RH9E3Z2 SNj0UO3W80ep/lLHJrecQ9kA2g3wrZsCccrQSVbPlWXOSW/ax9I6+73X+28wv5C/v2Va GE/Q== X-Forwarded-Encrypted: i=1; AJvYcCXnE8IFZpv4VBieemiB5nQZWDc35AoB5HTVmJ2uzbtm/EqdD+CPxv3e2TQCLR0CujS1oav8MoSg/uR/tEqTC5mt61W6OhpzYWp/j01riFmlb6qIFCQL X-Gm-Message-State: AOJu0Yx9iGfig9Ley6JhaGOuLdFqi0K5DUW9k52TuMPrbgF9OQhz/YAq FcJRkhztUf1f+hqluLPOrNcmrWcEn2TpFeMjGTPqlUoSW8/rd1Mx18NCjw== X-Google-Smtp-Source: AGHT+IGP4EdHe2uDVwOhDvxSmMc7aQvy2kkl9rm6sLwAOJ5wMA3A9rMYc7K383JHALI6dIzkHEPjTg== X-Received: by 2002:a17:907:d504:b0:a6f:67a0:c44a with SMTP id a640c23a62f3a-a6f67a0cb03mr305063366b.24.1718443675096; Sat, 15 Jun 2024 02:27:55 -0700 (PDT) Original-Received: from smtpclient.apple (pd9e36be1.dip0.t-ipconnect.de. [217.227.107.225]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db5b3asm277866366b.52.2024.06.15.02.27.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jun 2024 02:27:54 -0700 (PDT) In-Reply-To: <87y176d16h.fsf@gmail.com> X-Mailer: iPhone Mail (21F90) Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62e.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, T_SCC_BODY_TEXT_LINE=-0.01 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:320121 Archived-At: Good idea! Sent from my iPhone > On 15. Jun 2024, at 11:07, Helmut Eller wrote: >=20 > =EF=BB=BFOn Sat, Jun 15 2024, Gerd M=C3=B6llmann wrote: >=20 >> Helmut Eller writes: >>=20 >>>> On Sat, Jun 15 2024, Gerd M=C3=B6llmann wrote: >>>=20 >>>> I can't munmap because that >>>> would write back the changes done by the reloc phase back to the .pdmp >>>> file. >>>=20 >>> I think that's a misunderstanding. dump_map_file_posix sets MAP_PRIVATE= >>> for DUMP_MEMORY_ACCESS_READWRITE. So whatever changes the reloc phase >>> makes, they are written to copy-on-write pages and never to disk. >>=20 >> Hm, I can try that a bit later. So, the theory would be that mprotect >> PROT_NONE does not work somehow on madvice'd not needed memory? =20 >=20 > It looks like dump_discard_mem doesn't properly check error codes. > Maybe the region it want's to discard is not at page boundaries or > something like that.