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 GC and its implications Date: Sat, 04 May 2024 18:08:49 +0200 Message-ID: <87h6fdblv2.fsf@gmail.com> References: <877cgfwe5g.fsf_-_@gmail.com> <871q6mptkj.fsf@gmail.com> <86wmodofvw.fsf@gnu.org> <87frv1hclv.fsf@gmail.com> <86plu3i1nr.fsf@gnu.org> <87ikzvnnao.fsf@gmail.com> <86h6ffi00a.fsf@gnu.org> <878r0rnkpu.fsf@gmail.com> <86a5l7hvfw.fsf@gnu.org> <87ttjfm21e.fsf@gmail.com> <867cgaj3do.fsf@gnu.org> <8634qyiu0q.fsf@gnu.org> <87ttje6waw.fsf@gmail.com> <86r0eiggyj.fsf@gnu.org> <871q6hdifs.fsf@gmail.com> <86o79lg3i5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18169"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gerd.moellmann@gmail.com, acorallo@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 04 18:10:14 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 1s3Hxl-0004ZP-IP for ged-emacs-devel@m.gmane-mx.org; Sat, 04 May 2024 18:10:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3Hwb-0007pR-GA; Sat, 04 May 2024 12:09: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 1s3HwY-0007ot-FL for emacs-devel@gnu.org; Sat, 04 May 2024 12:08:58 -0400 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3HwV-0002l3-Qp; Sat, 04 May 2024 12:08:58 -0400 Original-Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-51fdc9af005so980197e87.3; Sat, 04 May 2024 09:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714838932; x=1715443732; 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=HCczfEsEOZymV7sfTxEgNx3f4klImIZYtKQusiATGHI=; b=PUJrUYg+mKmR5JMPXf8jquGYyAIgtOpaJ36tCJ10wE1Hl0PceRiZbTfYZXMk1vToMN J/06SzWYL+HYYfxAHeily0YfYIR2Y387LKu0gImkgan+nJWVeOLttAHa/FwYxa8GagDI yoro4ngj3s+AX/Vgd9+EgVQKaR6NGk04DahrUJ1Eo3GUysrJtgKIUAsjgSRTg5YfzQ9U QVmyv410mzGV+IICZ2Quh8hwxR5vidTdWk4Jj6pBQqdW+LXOekm+dPU3ZENf2yipTQcG AqciCEbSwB4johX8rpDqPCfZVWga8GTo5OA2XEzp6w7NwH2bs6VhrYYomUq1YX+I1GlA FDaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714838932; x=1715443732; 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=HCczfEsEOZymV7sfTxEgNx3f4klImIZYtKQusiATGHI=; b=kUesq+lEz9Aufr5SofsEome6PIQLxAnrxAtaFI51cFUhTNzytHKK30r+imDo6+loum oiZQECvW9lrj6ocu1HfpwWjCRVd7pjD5R3E2P7X9bJZJX+xbSERjnOm7ws3fpsHAExiY NhmkQ51BshrFmzx5kvBZ3cLm5ouAvZFdiZfsF7Xp3n78vE/6GCp10icsjamKO5eipWTB yoESucI+U8LRGGozWs307mYC+CGBivvqfhLT9JUVn5cMrHD4TOJzK3Ltx/3XacpfN5Bx yVOz94ss43QZedcTpSaOUijQ0KEU7Xnyjhm8XdmRKf7ENWpjMrx9/OsooTTa/9xdzqmz YPIw== X-Forwarded-Encrypted: i=1; AJvYcCUK5v7/RgHTmT2hKgLVtAM1gymPJOUYSIb1FcnwfizQ+09urMz0pql3UtfnoRPg9cOpVYmQWoddcahkVF10ZyFQqnzmwslH2SVuTpUlD0urOHOwU2AF X-Gm-Message-State: AOJu0Ywz7tPgxVnL/bn7orBWowwh5fQDtB4RYQzhEyz3ZdMJdrBDNFjy 2+ur7xIlfzO64m0yHonsukAT6XBdVlLYYJ5yRVbUJiBDyNwUvIcN7srHug== X-Google-Smtp-Source: AGHT+IFVXU8NNchngntKR/OdXLMmZEd12y/GEZYuQ6z1kUzYtGuCE/X3rsP45KzD37Oz9TLZsKmijA== X-Received: by 2002:ac2:5a11:0:b0:51a:e2a2:7262 with SMTP id q17-20020ac25a11000000b0051ae2a27262mr4803648lfn.8.1714838931899; Sat, 04 May 2024 09:08:51 -0700 (PDT) Original-Received: from caladan (dial-184253.pool.broadband44.net. [212.46.184.253]) by smtp.gmail.com with ESMTPSA id l18-20020a1709065a9200b00a598efbff0asm2120511ejq.112.2024.05.04.09.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 09:08:50 -0700 (PDT) In-Reply-To: <86o79lg3i5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 May 2024 15:34:10 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=eller.helmut@gmail.com; helo=mail-lf1-x12a.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:318748 Archived-At: On Sat, May 04 2024, Eli Zaretskii wrote: > Before we consider modification of MPS code, I think we should explore > what GDB already gives us. There is the $_siginfo convenience > variable, which provides the address of the fault and other > attributes. Can we perhaps use this to distinguish between the two > cases? That's also a possibility. There is a function mps_arena_has_addr that could be used to recongize addresses managed by MPS. The comment in igc.c say that mps_arena_has_addr is expensive and that is_mps is faster but could return false positives. Yet another possibility would be to set a breakpoint in sigHandle. One would have to look at the disassembled code first to find the appropriate address.