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: weak hash tables Date: Sat, 06 Jul 2024 13:57:52 +0200 Message-ID: References: <-plQctKgNkvp-LJ9ov2QAiXQKxd9V-hI0yz_opRGxQtbknubCjH4rH2-ymgbw_Qr1ZhB1rtlmiEW8XtuIVNr7nR_Yj20AH6WkH6kUGp68g0=@protonmail.com> <_mNcR6ailVKpYHLxgfo_tJlYGeR0AQIzQWluspYYp5_g5pIIKkHLNfFkklQQgOKNiVW8jn8NS3i2dJ7_B2Qyx9v-Dq3MQ9mP8HNL30UWsqY=@protonmail.com> <878qyf4sgm.fsf@gmail.com> <878qye3l81.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26078"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , Eli Zaretskii , Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 06 13:58:33 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 1sQ43l-0006fD-0o for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jul 2024 13:58:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQ43F-0007VK-Db; Sat, 06 Jul 2024 07:58: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 1sQ43B-0007V4-Jj for emacs-devel@gnu.org; Sat, 06 Jul 2024 07:57:57 -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 1sQ43A-0006tQ-5q; Sat, 06 Jul 2024 07:57:57 -0400 Original-Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a77baa87743so265095466b.3; Sat, 06 Jul 2024 04:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720267074; x=1720871874; 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=PhURvtpk2FC0jooiA0CqTTtzO7t8gkP4vG0CYc1oN88=; b=Ro+kZPh30jGfhkFDxaaNV32d/nOxgfWgVlLV5pETCO1Nk+c9nEptExSV7oSjaIVMRU Q3JgO1GaPzSbN4zc2hNvofJzrKNNdlMfwbp3yzhI3p82gOpOi4DnNIo2/zGjXRUJ4943 3W470mV05A989HyLnpfr6VWEzQ493kXpXktY+LDdYJpGm+QREcrEqV7vIVec7tlmIWKG 9OsSNSb8GaRh32rogVEgb9W4P6wEEyIKdt9ub4f3Qe9O4V2PtgYgjqejuTXsDWdZLpsN jm8nHDQWsuQs3jZ6a7Kri5FEVWX4L8d8VIn0HGXDYBxD1UUKbUBcuQcirqxovcJZs5Ej Ko0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720267074; x=1720871874; 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=PhURvtpk2FC0jooiA0CqTTtzO7t8gkP4vG0CYc1oN88=; b=NlAKRjgaY1SCvqJyBYEUmSq6f454y0cihT55BdBWPAtEojtBjn9xF6wyHfWvmAZqpS o4NMS4a5MD4n58R0W8W5v920BgNOfkCKXROpl7uN2FmCZahdL5QiVOwTTYa5QpXufA7a 1Yq3jKwv+Fb6DIw5q10eSwA3Yr1YxaCXm9s1us4AF72VgFthSTVSgQ1Cdgd0/u9jHMSg hl0n59YI0el8QeXlniZY1KZRxL7vwEIbQfKchlR4x32/GqDcopjJwarBg8ORdHx0u1+T Cu09ZreAOEXXftJeA58f4b/zLmjoWuX9I/3akop3lViUIL/vXrCM/kMFrFNqIBksFRD1 H0iQ== X-Forwarded-Encrypted: i=1; AJvYcCW6t7X70wvzzTTZLGVnd05mYDzRpy/cuCj0PKBPiE2yXkBXzfk4GU48hRQ+xDQRcw3Rd8bfwyYTbSKZTyhBDy47dE0HSryYxfFC84fDRpuF1g4= X-Gm-Message-State: AOJu0Yz86z2T+nPSIgmG6BJLl6qTibLhx9x31UNUJkq12G+RBqRpS5JY fWvG5gefkyQEL9l0Sjxlrx78DD2pJkn0vXnPZ+uxsm3oNiiGr3JY1k57ww== X-Google-Smtp-Source: AGHT+IF7E9yltn67Id8z6yf+sOTIxU6nteT6bFzBioeQ9w6Lv+mVM0Xbqn641hxblKSw2eE1YoH9Vg== X-Received: by 2002:a17:906:58f:b0:a6f:b29f:8304 with SMTP id a640c23a62f3a-a77ba46f893mr600741866b.29.1720267073726; Sat, 06 Jul 2024 04:57:53 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a82e.dip0.t-ipconnect.de. [79.227.168.46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77e7154712sm32895166b.94.2024.07.06.04.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jul 2024 04:57:53 -0700 (PDT) In-Reply-To: <878qye3l81.fsf@gmail.com> (Helmut Eller's message of "Sat, 06 Jul 2024 11:47:58 +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 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:321426 Archived-At: Helmut Eller writes: >> Hm, so this one didn't help. >> >> void >> garbage_collect (void) >> { >> #ifdef HAVE_MPS >> igc_process_messages (); >> #endif >> >> Looks like it needs to be put somewhere else. > > I think finalize_bignum is ever called for something like this: > > ./src/emacs -Q -batch -eval ' > (dotimes (_ 10000000) (set (quote foo) (ash most-positive-fixnum 10000)))' Well, turns out garbage_collect called exactly 0 times. Which poses the question where can we put that igc_process_messages, so that it doesn't get too expensive (if it is), but is regularly enough called even if not idle. Maybe_quit, maybe_gc, specbind? Any other ideas?