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 10:56:33 +0200 Message-ID: References: <87wmmsg2e4.fsf@gmail.com> <878qz8ezn4.fsf@gmail.com> <8734pfgb51.fsf@gmail.com> <86ikybyd2h.fsf@gnu.org> <87v82bebc6.fsf@gmail.com> <86wmmrwf86.fsf@gnu.org> <86r0czwdmc.fsf@gnu.org> <87jzire36a.fsf@gmail.com> <86plsiwxag.fsf@gnu.org> <868qz6wsvq.fsf@gnu.org> <878qz6egtb.fsf@gmail.com> Mime-Version: 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="19122"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) 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 10:57:21 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 1sIPDs-0004r3-DY for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Jun 2024 10:57:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIPDG-0006hm-JT; Sat, 15 Jun 2024 04:56:42 -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 1sIPDE-0006gp-Dl for emacs-devel@gnu.org; Sat, 15 Jun 2024 04:56:40 -0400 Original-Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIPDC-0002I8-S2; Sat, 15 Jun 2024 04:56:40 -0400 Original-Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a6265d48ec3so410129466b.0; Sat, 15 Jun 2024 01:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718441795; x=1719046595; darn=gnu.org; h=content-transfer-encoding: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=oMlU+uV8Mdn/MiTfVaSVeoQZkWta5RTd1mfM5hKU7Ko=; b=dkakCMhz6C7g3aK9JkeMNbxL4HZIaVYuN/Rxdla0zoHgvpthvHRBgMOa30PzUP407k s2hTEciH0paDTBQsgn9OfqM4r2DhlwO1VZ+RYghTPPqXRSp+8rvxVvcQaJRYzFLsJrxK 3StwK4fUaLYi6Gmdpp/FhwOeceHQ750ngw2GpyaHsNP9dACqq8LrBF2+Ea9Fy22+2l79 wF+5KdYr7inxM6xpiSBtT/JoAysELlqUrF0pMtOip1qNtSX6IkS4APDSx9iFNL5UEAdH nW9yE9N0l83VsF5NPENj0EPwqlWklCsJLKbjqC721Ig8QKdAifXV9R5NlzW2+VAsZgLF MI7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718441795; x=1719046595; h=content-transfer-encoding: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=oMlU+uV8Mdn/MiTfVaSVeoQZkWta5RTd1mfM5hKU7Ko=; b=SnpaXpOYJGZcXwe+HCfbJa+PTUYfBm6pmHllPdTnoQfQJAwTKAvcF3Ad9P0+U66o2W umxfm5bg6UoLnv8dLXMB1l0hr6DOlhykJzWmVKOJweevLOJHVd8qFlKl+YSM1c8BziDt XvErVFGof+jamVEjqQB7rfoDds7sCiwB6PHlU8eHxJli6G/N+5GnwrnxEaAVJ8YzzP13 TL0/nRIgnJJjZoyIduN2/ss+oFjda4qYfjDQgjbMXxpLUZeTUA/CUP3kbgZ8tl1lqifb UY3yQwiyFg0xHn6Mbqms/R9Fhq609m4b0JgQwQZwQ21TyAwV7QeDfv/UeAncdaXFR/ms N7FQ== X-Forwarded-Encrypted: i=1; AJvYcCU0F7TxFxBOgAkeHiCL1UyD2thMJ4IcaU6qRCvQuI+UhXVdWltB8Azvp15MCohhe8B8VqsH8o/0V6esfOdz/b3uGKg2xLN7BlfytoPAgn4U/v9LIBgp X-Gm-Message-State: AOJu0Yz9PHdvjHpqdzpglId2jduBP/AEE9mi/ZCuP7vroX+VxnDLqFpR eYZpiEdZLKK3YINx2eMyRyEoV3DXzu/GnAFAdLCB8cyPExqvTDxHORuwzg== X-Google-Smtp-Source: AGHT+IGRmslXFQ7YN1gTFRvNGMRD/NaZy4ePBt0CTvx6zUbhDN9/c2mYalyp5QFHGOWBhXdEMvlMvA== X-Received: by 2002:a17:907:868d:b0:a6f:6ef:225 with SMTP id a640c23a62f3a-a6f60d2054dmr408272166b.19.1718441794922; Sat, 15 Jun 2024 01:56:34 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36be1.dip0.t-ipconnect.de. [217.227.107.225]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56ed0d89sm277168566b.134.2024.06.15.01.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 01:56:34 -0700 (PDT) In-Reply-To: <878qz6egtb.fsf@gmail.com> (Helmut Eller's message of "Sat, 15 Jun 2024 10:44:16 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x633.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:320118 Archived-At: Helmut Eller writes: > On Sat, Jun 15 2024, Gerd M=C3=B6llmann wrote: > >> I can't munmap because that >> would write back the changes done by the reloc phase back to the .pdmp >> file. > > 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. 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