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: face-cache Date: Tue, 30 Apr 2024 15:43:07 +0200 Message-ID: References: <87bk5tc1j6.fsf@gmail.com> <877cghc0yy.fsf@gmail.com> <86jzkhu5rv.fsf@gnu.org> <87ttjlabic.fsf@gmail.com> <87v8408wsr.fsf@gmail.com> <87o79sasl5.fsf@gmail.com> <87plu72y8h.fsf@gmail.com> <868r0vqe0d.fsf@gnu.org> <86ttjjour3.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="18940"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 30 15:44:05 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 1s1nm9-0004gR-0D for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Apr 2024 15:44:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1nlT-0005kF-Tm; Tue, 30 Apr 2024 09:43:24 -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 1s1nlN-0005jm-2F for emacs-devel@gnu.org; Tue, 30 Apr 2024 09:43:19 -0400 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1nlJ-0007Ng-Dn; Tue, 30 Apr 2024 09:43:14 -0400 Original-Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-56e56ee8d5cso7282281a12.2; Tue, 30 Apr 2024 06:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714484590; x=1715089390; 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=YryG52Q8v7ElFOMacg4JhoznaTAq3TJVRB8b5nmbAb8=; b=FJllQ+Igp5DM8U/F9WeLjJo3mrxWDrb17IL3tFZFaRCc/l4vAheLWNa38gHbuhlZ3C 7UIUQwhOeGHOQGyqx2fLn1Zg1TfjganJgJhFMqfuCLvv8zEhii5E3tXvCbmgc4J3F8ku BdBs5Mm1BKcahaPvcPaR8AA5Z2TmYO/gimu4iy+LcUN/mFxyA30tbo/31qHGWnjYD/vR VHkMMA/izVB1thC8FXrmx+w4omoDDikmfQ+hqwT5DHhNJTudvx5BqEp7YBybFHwRQz09 k5FUgdfSUvX6sqxu4s3Uj+4SeLaBnxE73W0cq7RLyONvl7K49C9lUWJ+Xc6aV2Fu5P69 q3hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714484590; x=1715089390; 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=YryG52Q8v7ElFOMacg4JhoznaTAq3TJVRB8b5nmbAb8=; b=ovvPAojBz2M5ZfcONfLBqcedtVTNZYjGi4wMs+NJeObr3FPcSjQgYM2uLu6Webb0OH nz+EHgGDTpiseXiIlnQXn96G2c34sXojpnGblPMA3gKFeTsPEjX2IzhLLPQNUkl5/EbG H1hDBciThVApGfKAXo+p79dB49q2VFDGlyH7KEdJfn+L80mmESGaWZN5m6C9UTLFSrML vIiSchagDTMz3G03iY+A7X5NJ3gT1p9aWi79nQolLP3vOnIvQDxmFH6ZEWiXehlLiTeg QOlyuTSISACZYLJ5eQsRd0e0/NVPZwn082QXU6IkXxYtdJPm1Dk9b8RvdoHM7sYX/W8J juzA== X-Forwarded-Encrypted: i=1; AJvYcCVb9YI/nH7FU70PPrutsg53ATdSLac4eAxhiQdP//UfXNcsfCnyC9FnoXJkqMb7kri1hXiL8MKFlM6gcACT/07powoZ X-Gm-Message-State: AOJu0YzCQHyox/smSmWPvjG2HTMLLzorKlyFfQa3pZUENuoL7WN1dA1N bhE0fnO2zrLTj5OGA3RoF3SEz45KqBqlt4fK7sBmBuHXua9STjhXxANIvw== X-Google-Smtp-Source: AGHT+IEoQPm+iP1NG0NYoXH5xtEb1tupTeVfDMMa6zgPmM1xwE0be8JYN4aN69L3c5smW8ffINGnIg== X-Received: by 2002:a50:d4ce:0:b0:56e:24a5:587a with SMTP id e14-20020a50d4ce000000b0056e24a5587amr11227291edj.11.1714484589717; Tue, 30 Apr 2024 06:43:09 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3ae18.dip0.t-ipconnect.de. [79.227.174.24]) by smtp.gmail.com with ESMTPSA id g4-20020a50ee04000000b005727ea3026asm2523955eds.6.2024.04.30.06.43.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 06:43:09 -0700 (PDT) In-Reply-To: <86ttjjour3.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Apr 2024 16:17:04 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52f.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:318431 Archived-At: Eli Zaretskii writes: > Some of both, actually. We re-enter the normal input processing, see > tty_menu_activate, but we inhibit redisplay (because the display > engine has no idea someone wrote int its matrices behind its back) and > manage screen updates ourselves. We also inhibit GC (in > tty_menu_show). Maybe the cheapest solution would be to use specpdl_ref igc_park_arena (void) { specpdl_ref count = SPECPDL_INDEX (); record_unwind_protect_void (release_arena); mps_arena_park (global_igc->arena); return count; } This "parking" is like inhibiting GC. I've used it while pdumping so that pdumper can write its dump without objs moving.