From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: MPS codegen Date: Sat, 15 Jun 2024 11:07:18 +0200 Message-ID: <87y176d16h.fsf@gmail.com> 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="28962"; 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: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 15 11:07:41 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 1sIPNt-0007PG-K3 for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Jun 2024 11:07:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIPNd-0004jN-2F; Sat, 15 Jun 2024 05:07:25 -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 1sIPNb-0004fJ-EY for emacs-devel@gnu.org; Sat, 15 Jun 2024 05:07:23 -0400 Original-Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIPNZ-0004LZ-Qk; Sat, 15 Jun 2024 05:07:23 -0400 Original-Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a6f21ff4e6dso433535466b.3; Sat, 15 Jun 2024 02:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718442439; x=1719047239; 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=YFAaB9xN2UGjfHY/QGEzEn30ZNHZySYZ2zjhw2b7sKs=; b=F+THZb3gdpdnwI4b6RNt+0mGN9JBJMxvJJRvWPU7Vxn0HaXjKNzzzepB8ZrRZNRDZG bHvq/qaZ3QUP9aciRFqEnE4tMN/TVgvEG71lTBkAH1BH32ONZvtY6/DBwUiX7/4qIS1U 0VOoRuOr4Iw1PS3GAUuWI37VJlvsfAZjRGk7Sp5CjM+4iOC8aZcCNPsKWugEh30AbvhK L2TAai2k1f5gSet8qeTyjW1z2jsldcGI3PAQxNaWNhfvkQ579NDOAHo6Kq3eIDdpi5ls EySGUEJLlNc1GGedfm8FOz39++UdQQ23FgtcKvwaZN2PIIWE47ye0vYJwPtBH28zNGN/ 53OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718442439; x=1719047239; 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=YFAaB9xN2UGjfHY/QGEzEn30ZNHZySYZ2zjhw2b7sKs=; b=sDZZ+lg40f0m52zAZb9Eb5eHwLNvLTnn7ejjWECOcPyZoO/KEltg3wlqaDeyqw35PK xrYmsmjqRpOOJkHOHmcMduHAQvshflSUVtZXcr5d9bgr7ByLH1Yt4vKv92J/VQoN1R3s NBFSocfr3G0o0N+c+hei5plRu3RWyUwiPPDo5MfJ1ckWJFjPi2iYuaC0zy+NS9GS/p+Q d7dXJ12FoAKhqbD9FNqIBoePN4Baphm2x05hJf/xPJT3+xxD+BQu6klqaOFWqwkeiB1f H9Ru6h3SJ8mklkgVyqFtwgtR17dQqmg4/S8Y5IhZ3MEgxeCrMqdtsG1qBum4LcrdrXm0 ShZQ== X-Forwarded-Encrypted: i=1; AJvYcCXGzD1RgNtwNbOjMxENKkHTPp3xbCaaIWz+Z82nEgfJO0q7djpfVZLqHDyVuwbXVOV+oK5ceVwcZFX2k3GQna4Rz7y1eY16qz0bi4x0wRweC+I9ch0u X-Gm-Message-State: AOJu0YxxDuomyV3fvDfissEvNa5hR+JWgrylVu7eb8Hxi7Ig7Q4iIsS0 psEvlr2z6bAgEREcd9f5ddDpsHpZn4mWKdJO7z9ZJySSuzlONBDQiivnbg== X-Google-Smtp-Source: AGHT+IEvPaHZhqIcUEL4PWFyP5qdgQDu8LEMU5nqmxWeO9+hTPCXAx+Q7XUxiW0aCa8jkDakaIpvRA== X-Received: by 2002:a17:907:c081:b0:a6f:77bb:1713 with SMTP id a640c23a62f3a-a6f77bb1889mr44340166b.9.1718442439300; Sat, 15 Jun 2024 02:07:19 -0700 (PDT) Original-Received: from caladan (dial-189091.pool.broadband44.net. [212.46.189.91]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56da3f50sm281504966b.14.2024.06.15.02.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 02:07:18 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 15 Jun 2024 10:56:33 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x634.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:320120 Archived-At: On Sat, Jun 15 2024, Gerd M=C3=B6llmann wrote: > 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 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.