From unknown Mon Aug 18 20:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76069: 31.0.50; Hash tables not collected Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Feb 2025 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76069@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173876623321796 (code B ref -1); Wed, 05 Feb 2025 14:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Feb 2025 14:37:13 +0000 Received: from localhost ([127.0.0.1]:49217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfgWe-0005fR-2v for submit@debbugs.gnu.org; Wed, 05 Feb 2025 09:37:12 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46080) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfgWW-0005ex-42 for submit@debbugs.gnu.org; Wed, 05 Feb 2025 09:37:09 -0500 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 1tfgWL-0007nF-Fo for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2025 09:36:54 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tfgWG-000598-6s for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2025 09:36:50 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ab6ed8a3f6aso1036801866b.2 for ; Wed, 05 Feb 2025 06:36:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738766206; x=1739371006; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sL9IBAZAXoIbVTd2slrHVn9aUJcS5abJ3dGh0nX+8fM=; b=I07Q70+TAm48YwQpipT+mKIbmS19HfeJfueWJe2iVFwUxPhvFNnqFzznTZA7DjLr4i DYU2mCe/UgS5QOMq+vdBPJn52nC0FfvBKTVdChG9fKzueC43S2H4kPe/39M3B4/2JVJi K7kboZ1L6dihlu/hPNN53htbbo9znodtSLtcN1hfhUhTNtfPR3xVp1Mmjf47yHRtQe+o zcm0aEZFt2yxofB7WAjpJuy94lmEoWblhymK+eSVvt4CIoKhN267KMecoBEz8Dm1jmHJ qFZf747VD1tzpmOQyHITgQSKIDuStgpIO39YW85XrcqKNccL4bi/KdchX0sr4j1jtaYW hqmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738766206; x=1739371006; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sL9IBAZAXoIbVTd2slrHVn9aUJcS5abJ3dGh0nX+8fM=; b=uvk6IU8264Cj231JSrvE9w1UsecJvwmp7pM7F89xKds9ghykazCeXwZ61dsL1s11jG HxeZ4h8rb2V5CSaxSV6VgjuqcIgLQFsKvH4Z+z7/G6uqWK83SfMyVUAOXnb5Z+BFnKqq J9WVdxEGwbU038HQJssCYYll44fWsLly9LS92ghOpWLr79pF0a8cN+bDT1SIOfK2MNyC WgyYSjeQ5yiiWQBrxBq2WxLvuICLsvcGjGLbnafCZsAgu2x1SO9RqrdiOA6MOX3QRE33 7JLNLL2QepoXgj7MbmKWgMmltAOrZgprCy8MNjTq9zuI7FFZwtONDPZHPSQJvr4W9CK5 6b4w== X-Gm-Message-State: AOJu0YxogrX6JO9yo9UxrCH6yZVNvYN6k+c51KKRwY9hESAGFlhGsjPT 81Wzt5j5pmPI9iP/guEoZvRgPmtKlwQU1fUqtMjWN/kzAqoC7i7ESb12YA== X-Gm-Gg: ASbGncuVCC/1+Y6WkCz54qY4hmaz3dOn4ofIf47vhh07mbqAkYJHbg4fQ6sv0Oa3dy8 c9U/sc/CpMrvjC+g4IDl76k0uyr2PsNcQcFPM5byaBzXeJLbPTgxDYqdxRCMdebrry5KQtmuwfY BVdFuKZ88RL35otbqbkDK/1XNh/XaPM63xM7e5bxeve8uDTb3Rk6e62zQ+z1TqWFCkMgUexnE7r zzSnlOwsMQJO7IzxRaHKiYwCOUdEgsQn6o/u38zHDFMXKh2vHrTMUBbS1iQ8FHolph7rOqyXykj mTnqdulYWKFmZ1hqypDSjuLjJ5ZWLI6tgF6uqRwjCfXJTcsG X-Google-Smtp-Source: AGHT+IET81nq3wOSi6OK5S2a0KEbFRwwuVJ269XuMuNdvw2ZOGCS6fnygi3idllfo6zYM4lUNx6gLw== X-Received: by 2002:a17:907:7715:b0:ab7:6369:83fc with SMTP id a640c23a62f3a-ab7636986b4mr222006166b.38.1738766205686; Wed, 05 Feb 2025 06:36:45 -0800 (PST) Received: from caladan (dialin-233080.rol.raiffeisen.net. [195.254.233.80]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab6e4a00054sm1121147466b.104.2025.02.05.06.36.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2025 06:36:45 -0800 (PST) From: Helmut Eller Date: Wed, 05 Feb 2025 15:36:44 +0100 Message-ID: <87frks8nlv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x631.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-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) If the current feature/igc branch is configured without MPS, then it seems that hash tables aren't collected properly. When executing this file ;;; -*- lexical-binding: t -*- (defun hash-integers (n) (let ((table (make-hash-table :test 'eql))) (dotimes (i n) (puthash i i table)))) (defun main () (dotimes (_ 300) (hash-integers 100000)) (kill-emacs)) ;; EOF with: /usr/bin/time emacs -Q -batch -l httest.el -f main I see: 15.35user 2.40system 0:35.18elapsed 50%CPU (0avgtext+0avgdata 2429884maxresident)k 65152inputs+0outputs (443major+675016minor)pagefaults 0swaps This is the output of GNU time (not the bash builtin). Note the ~2.3GB maxresident. Also, when I set a breakpoint in gdb at alloc.c:3389 it is hit only once while executing this file. In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2025-02-05 built on caladan Repository revision: 4c97d39b16a75411ccfdcf16d0871a77ff41785c Repository branch: feature/igc System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-mps=no --with-xpm=ifavailable --with-gif=ifavailable --with-native-compilation=no 'CFLAGS=-g -O2 -fno-omit-frame-pointer --std=gnu99 -I/scratch/emacs/mps-install/include -L/scratch/emacs/mps-install/lib'' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: whitespace-mode: t outline-minor-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t From unknown Mon Aug 18 20:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76069: 31.0.50; Hash tables not collected Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Feb 2025 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Helmut Eller Cc: 76069@debbugs.gnu.org Received: via spool by 76069-submit@debbugs.gnu.org id=B76069.173877601424381 (code B ref 76069); Wed, 05 Feb 2025 17:21:01 +0000 Received: (at 76069) by debbugs.gnu.org; 5 Feb 2025 17:20:14 +0000 Received: from localhost ([127.0.0.1]:52216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfj4P-0006Kw-U1 for submit@debbugs.gnu.org; Wed, 05 Feb 2025 12:20:14 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:11277) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfj4L-0006ID-UM for 76069@debbugs.gnu.org; Wed, 05 Feb 2025 12:20:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1738776002; x=1739035202; bh=yXGzrvZBPRNicyr3z+QczGWoJ7+K/G+qH4VIEakqiPk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=CGzyrcKAht3JoArqJT8PN82k2baj18rfeEYMNsnKBCQKBcB7rVyfYOoz6H8jLP1WF +ye/JKZBD7QzZrKQSTPG4c5nBlSuulZvtn1oz1ig+phRZcaRds/CVWVd0jVs7ehEj2 FTGVgWn0lxrKCnd7ZkVosctsMoz400AMRYkqCsnANY4r82NeYh2cg3emJN+e8AlQLR 40k5wHwzM9OBO7Bq2Ct693v0980jQo2T3l0fqbOzwedBXqs4u86Itdqa9gxZmby+OX Rw+j4WaYRc0xQPyvjNawSPpjVa5QsJqdc+h5zrtfHnLIOaNbU4nR+u4KlIYcPGJL8b UEbxPQEatEyaw== Date: Wed, 05 Feb 2025 17:19:58 +0000 From: Pip Cet Message-ID: <87frkss40y.fsf@protonmail.com> In-Reply-To: <87frks8nlv.fsf@gmail.com> References: <87frks8nlv.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: cbf4e5459ee905c2d57d9b06b0288d3a87e62256 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Helmut Eller" writes: > If the current feature/igc branch is configured without MPS, then it > seems that hash tables aren't collected properly. When executing this > file Will fix in a bit, thanks for the report. Pip From unknown Mon Aug 18 20:14:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Helmut Eller Subject: bug#76069: closed (Re: bug#76069: 31.0.50; Hash tables not collected) Message-ID: References: <875xlos1ml.fsf@protonmail.com> <87frks8nlv.fsf@gmail.com> X-Gnu-PR-Message: they-closed 76069 X-Gnu-PR-Package: emacs Reply-To: 76069@debbugs.gnu.org Date: Wed, 05 Feb 2025 18:12:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1738779122-1578-1" This is a multi-part message in MIME format... ------------=_1738779122-1578-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76069: 31.0.50; Hash tables not collected which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 76069@debbugs.gnu.org. --=20 76069: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76069 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1738779122-1578-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76069-done) by debbugs.gnu.org; 5 Feb 2025 18:12:01 +0000 Received: from localhost ([127.0.0.1]:52303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfjsW-0000P5-Lq for submit@debbugs.gnu.org; Wed, 05 Feb 2025 13:12:00 -0500 Received: from mail-10630.protonmail.ch ([79.135.106.30]:27045) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfjsU-0000Oo-O0 for 76069-done@debbugs.gnu.org; Wed, 05 Feb 2025 13:11:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1738779111; x=1739038311; bh=P+1H4vyxL+IBbNKfPSIc94kvFXSJpSzbK9FT2Er47IU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=MZt0LaJKf/SMIF/SfYHB1Ckiyu0gF5MGSqqx8pggXCfjXiGzffkPmmJfPh0Y6FU7m QczbMTYJL5n0Cjk/2aOBX2K/cqRTqHACGI2iD3L3HMm6vQKX/UgAQ4b3mz/K0z6e0X DCWUVtJfa11VYqGGH9UvMPxGR2dZ30UJ6BivMBzhkrRNg3xQXsBKyDfXc6zTSQbIR+ 3lTlpFfPFa0iChohiyOIHEqXcz/IcXuEsxOjqjBIMiJyeDWGwOvnNtG3txtRUlvbJC O+//JRNn4cjOB6UEFDu1BkWm3cPxYK6Vjx0zwzXpNPWr3TURiirHAePZsdmwlXZtd1 P+Dn5IC0CarzA== Date: Wed, 05 Feb 2025 18:11:47 +0000 To: Helmut Eller From: Pip Cet Subject: Re: bug#76069: 31.0.50; Hash tables not collected Message-ID: <875xlos1ml.fsf@protonmail.com> In-Reply-To: <87frks8nlv.fsf@gmail.com> References: <87frks8nlv.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 7d48bcadf10e8dea80de21b23861e605e85e1f7c MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76069-done Cc: 76069-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pip Cet writes: > "Helmut Eller" writes: > >> If the current feature/igc branch is configured without MPS, then it >> seems that hash tables aren't collected properly. When executing this >> file > > Will fix in a bit, thanks for the report. Hopefully fixed now, closing. Please reopen or revert if I messed up :-) Pip ------------=_1738779122-1578-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Feb 2025 14:37:13 +0000 Received: from localhost ([127.0.0.1]:49217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfgWe-0005fR-2v for submit@debbugs.gnu.org; Wed, 05 Feb 2025 09:37:12 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46080) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfgWW-0005ex-42 for submit@debbugs.gnu.org; Wed, 05 Feb 2025 09:37:09 -0500 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 1tfgWL-0007nF-Fo for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2025 09:36:54 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tfgWG-000598-6s for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2025 09:36:50 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ab6ed8a3f6aso1036801866b.2 for ; Wed, 05 Feb 2025 06:36:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738766206; x=1739371006; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sL9IBAZAXoIbVTd2slrHVn9aUJcS5abJ3dGh0nX+8fM=; b=I07Q70+TAm48YwQpipT+mKIbmS19HfeJfueWJe2iVFwUxPhvFNnqFzznTZA7DjLr4i DYU2mCe/UgS5QOMq+vdBPJn52nC0FfvBKTVdChG9fKzueC43S2H4kPe/39M3B4/2JVJi K7kboZ1L6dihlu/hPNN53htbbo9znodtSLtcN1hfhUhTNtfPR3xVp1Mmjf47yHRtQe+o zcm0aEZFt2yxofB7WAjpJuy94lmEoWblhymK+eSVvt4CIoKhN267KMecoBEz8Dm1jmHJ qFZf747VD1tzpmOQyHITgQSKIDuStgpIO39YW85XrcqKNccL4bi/KdchX0sr4j1jtaYW hqmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738766206; x=1739371006; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sL9IBAZAXoIbVTd2slrHVn9aUJcS5abJ3dGh0nX+8fM=; b=uvk6IU8264Cj231JSrvE9w1UsecJvwmp7pM7F89xKds9ghykazCeXwZ61dsL1s11jG HxeZ4h8rb2V5CSaxSV6VgjuqcIgLQFsKvH4Z+z7/G6uqWK83SfMyVUAOXnb5Z+BFnKqq J9WVdxEGwbU038HQJssCYYll44fWsLly9LS92ghOpWLr79pF0a8cN+bDT1SIOfK2MNyC WgyYSjeQ5yiiWQBrxBq2WxLvuICLsvcGjGLbnafCZsAgu2x1SO9RqrdiOA6MOX3QRE33 7JLNLL2QepoXgj7MbmKWgMmltAOrZgprCy8MNjTq9zuI7FFZwtONDPZHPSQJvr4W9CK5 6b4w== X-Gm-Message-State: AOJu0YxogrX6JO9yo9UxrCH6yZVNvYN6k+c51KKRwY9hESAGFlhGsjPT 81Wzt5j5pmPI9iP/guEoZvRgPmtKlwQU1fUqtMjWN/kzAqoC7i7ESb12YA== X-Gm-Gg: ASbGncuVCC/1+Y6WkCz54qY4hmaz3dOn4ofIf47vhh07mbqAkYJHbg4fQ6sv0Oa3dy8 c9U/sc/CpMrvjC+g4IDl76k0uyr2PsNcQcFPM5byaBzXeJLbPTgxDYqdxRCMdebrry5KQtmuwfY BVdFuKZ88RL35otbqbkDK/1XNh/XaPM63xM7e5bxeve8uDTb3Rk6e62zQ+z1TqWFCkMgUexnE7r zzSnlOwsMQJO7IzxRaHKiYwCOUdEgsQn6o/u38zHDFMXKh2vHrTMUBbS1iQ8FHolph7rOqyXykj mTnqdulYWKFmZ1hqypDSjuLjJ5ZWLI6tgF6uqRwjCfXJTcsG X-Google-Smtp-Source: AGHT+IET81nq3wOSi6OK5S2a0KEbFRwwuVJ269XuMuNdvw2ZOGCS6fnygi3idllfo6zYM4lUNx6gLw== X-Received: by 2002:a17:907:7715:b0:ab7:6369:83fc with SMTP id a640c23a62f3a-ab7636986b4mr222006166b.38.1738766205686; Wed, 05 Feb 2025 06:36:45 -0800 (PST) Received: from caladan (dialin-233080.rol.raiffeisen.net. [195.254.233.80]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab6e4a00054sm1121147466b.104.2025.02.05.06.36.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2025 06:36:45 -0800 (PST) From: Helmut Eller To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Hash tables not collected X-Debbugs-Cc: Date: Wed, 05 Feb 2025 15:36:44 +0100 Message-ID: <87frks8nlv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x631.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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) If the current feature/igc branch is configured without MPS, then it seems that hash tables aren't collected properly. When executing this file ;;; -*- lexical-binding: t -*- (defun hash-integers (n) (let ((table (make-hash-table :test 'eql))) (dotimes (i n) (puthash i i table)))) (defun main () (dotimes (_ 300) (hash-integers 100000)) (kill-emacs)) ;; EOF with: /usr/bin/time emacs -Q -batch -l httest.el -f main I see: 15.35user 2.40system 0:35.18elapsed 50%CPU (0avgtext+0avgdata 2429884maxresident)k 65152inputs+0outputs (443major+675016minor)pagefaults 0swaps This is the output of GNU time (not the bash builtin). Note the ~2.3GB maxresident. Also, when I set a breakpoint in gdb at alloc.c:3389 it is hit only once while executing this file. In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2025-02-05 built on caladan Repository revision: 4c97d39b16a75411ccfdcf16d0871a77ff41785c Repository branch: feature/igc System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-mps=no --with-xpm=ifavailable --with-gif=ifavailable --with-native-compilation=no 'CFLAGS=-g -O2 -fno-omit-frame-pointer --std=gnu99 -I/scratch/emacs/mps-install/include -L/scratch/emacs/mps-install/lib'' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: whitespace-mode: t outline-minor-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t ------------=_1738779122-1578-1-- From unknown Mon Aug 18 20:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76069: 31.0.50; Hash tables not collected Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Feb 2025 09:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pip Cet Cc: 76069-done@debbugs.gnu.org Received: via spool by 76069-done@debbugs.gnu.org id=D76069.173892023430719 (code D ref 76069); Fri, 07 Feb 2025 09:24:01 +0000 Received: (at 76069-done) by debbugs.gnu.org; 7 Feb 2025 09:23:54 +0000 Received: from localhost ([127.0.0.1]:32828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgKaX-0007zO-Nq for submit@debbugs.gnu.org; Fri, 07 Feb 2025 04:23:54 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:57716) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tgKaU-0007z3-IT for 76069-done@debbugs.gnu.org; Fri, 07 Feb 2025 04:23:51 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-43618283dedso17858835e9.3 for <76069-done@debbugs.gnu.org>; Fri, 07 Feb 2025 01:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738920224; x=1739525024; darn=debbugs.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=kP0ZeId6qEIFkxdLleNa5ANXIWt3JvEmC+qeZOLh3Jo=; b=FZCy3l/UQTR8/negLhRMlfokOBFBE4L8vvM3EgkPAtMFGiLMJAVOlGfD7RVnBwyDC0 efMKcXf3OXdLm6u2AysrD4Pe2fLQYUdmfr/E1TYJmR9QvYflhdxjrm6TjxGXrFIm4D2y ZrcIOBe312P8AJt9TkxM8skBfgZBaYMWjefBSKbHR95s/M3GEtYkZFznSRv+NE2uDyxS appgo5El2o9EfuKWPDIibt26u1tHFREWuvbokCWnuBdlfzykgNV5MGfCG79LH6PriF6y VTq+5s/irOUnvULL7OD3Q08KbGGokgijA87J1IctrUyfc+dY8FhgKIVBt5W5P7BjE6s4 7Q1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738920224; x=1739525024; 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=kP0ZeId6qEIFkxdLleNa5ANXIWt3JvEmC+qeZOLh3Jo=; b=uj5lRF64LG4DaGiNc2n04I1KB3UuvmtO2gQV/otQb8c1621swA4DrhMz89LoLXvQvN wAe4195BLpMZ1XvF071VouY++iGrdnBo0U4GXa6SnwpXIeYUYbAbX+i3IrDhKeNffPjU B6vDVjGbm5wNuM8+BlOyI3uvApKF2uyNVA0Hh9oqg+E3X9HmBoS7kX17HLO4JDJAu+ot q3EAOJ6tIldp6wxuODyY+PAULp+VEpDJQT56gzNv+kSV8GmH/MG+fIiSJoyb9zH0DbmW RG1OFQJEG18DX9VqmKyw3kvoNtWTnVW5GQfT+fjhAfuYUW467kvoermV/D26HlkyBdN6 iBIQ== X-Gm-Message-State: AOJu0YwatjQfOkXm0KUoNR+qHZyZXTPhh6voMY/J7XZoP/GFnJTmQOIB bWFweOrAGXeMm+6tkGMbvXYGhs1F2v8t6tKlRYMmxkXtXbXpQ0vBOyzx3g== X-Gm-Gg: ASbGncvVrCVBO+hvy6hpzgtadfKUvUpqth3KygDJuypTc+DXblYwKiVrep0cPx8WD9V 3Eis3mP9o6/oSJB0bzIt2wNbMtIm4NLMYYrbbR4Q9UhbzR7WMVPRSR72stoMj1KH4Lx16SmEcQ+ 4Oup5EJXunHIM0zcS+BDpXi0stJB15A2dj8wQOINSJlxkj9+oWCoCCjU8uNkCYHcUHWbwb9tJ+T 8iHE+iKkO5onTKjI664k0bVWdIDLrqwe1YUROpRTZDpvXFkpZn6sBorgBfBNrDwnGeK54nsXCls muv2on9QLzdLpCs8sJJiX6ZEg3za0EH2P/HSLVflIL/YT+S+ X-Google-Smtp-Source: AGHT+IECB/7JtmLtuu66uZEm65gIYhyTVc2UiU3c4+GA+Iw+ZHg/5In3lhr0dVfOFklYN4KqUocVzA== X-Received: by 2002:a05:600c:1e25:b0:436:17e4:ad4c with SMTP id 5b1f17b1804b1-43924972ce9mr18852245e9.6.1738920223909; Fri, 07 Feb 2025 01:23:43 -0800 (PST) Received: from caladan (dialin-233080.rol.raiffeisen.net. [195.254.233.80]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4391dca004esm47247725e9.13.2025.02.07.01.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 01:23:43 -0800 (PST) From: Helmut Eller In-Reply-To: <875xlos1ml.fsf@protonmail.com> (Pip Cet's message of "Wed, 05 Feb 2025 18:11:47 +0000") References: <87frks8nlv.fsf@gmail.com> <875xlos1ml.fsf@protonmail.com> Date: Fri, 07 Feb 2025 10:23:42 +0100 Message-ID: <87ed0ahzvl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, Feb 05 2025, Pip Cet wrote: > Pip Cet writes: > >> "Helmut Eller" writes: >> >>> If the current feature/igc branch is configured without MPS, then it >>> seems that hash tables aren't collected properly. When executing this >>> file >> >> Will fix in a bit, thanks for the report. > > Hopefully fixed now, closing. Please reopen or revert if I messed up :-) I think, in hash_table_free_kv you forgot to update hash_table_allocated_bytes. It would probably best to call hash_table_free_bytes. Helmut From unknown Mon Aug 18 20:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76069: 31.0.50; Hash tables not collected Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Feb 2025 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Helmut Eller Cc: 76069-done@debbugs.gnu.org Received: via spool by 76069-done@debbugs.gnu.org id=D76069.17389213471942 (code D ref 76069); Fri, 07 Feb 2025 09:43:02 +0000 Received: (at 76069-done) by debbugs.gnu.org; 7 Feb 2025 09:42:27 +0000 Received: from localhost ([127.0.0.1]:32863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgKsV-0000VF-2w for submit@debbugs.gnu.org; Fri, 07 Feb 2025 04:42:27 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:54351) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tgKsS-0000Uw-CY for 76069-done@debbugs.gnu.org; Fri, 07 Feb 2025 04:42:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1738921335; x=1739180535; bh=PP1AjLwAWVlXi4wrbqcjF4LOzqTDi3JRtHSjSgNI45E=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=r/h9TzVYng52NzXiiwlXtZ/xZtI8ibWW4v2+G+ky1VAbGRmQw8bUmTEVSlyj/QL3f 96c4fITvOfEb0A5kuqclI9atMOi9yC40gXoWcFgvu4tXbeTrdHtCv9lKUPTeVijngX egqWid2VIMlslSe5goSR5B00C3s55Y+0S2Z7itH28INK9OxMFR4nicqQqlMiQ4K5gr hyYarz7xAoXbBBO7i7xubcIItBy5NpfyZla6La0HZBGm9pPNUW5GlRB/TPgQcywa+1 WBJJw7IkBu4y8wuvDzoP0um1XHogd7QFzHp5Ha0Oekr63W0oBD2Jsr8kqslK3jerwJ 3QV6BZO2ISO1Q== Date: Fri, 07 Feb 2025 09:42:10 +0000 From: Pip Cet Message-ID: <87wme2f5wq.fsf@protonmail.com> In-Reply-To: <87ed0ahzvl.fsf@gmail.com> References: <87frks8nlv.fsf@gmail.com> <875xlos1ml.fsf@protonmail.com> <87ed0ahzvl.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 09736e71aca313eaccb2e114cad95949ea387cf8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Helmut Eller" writes: > On Wed, Feb 05 2025, Pip Cet wrote: > >> Pip Cet writes: >> >>> "Helmut Eller" writes: >>> >>>> If the current feature/igc branch is configured without MPS, then it >>>> seems that hash tables aren't collected properly. When executing this >>>> file >>> >>> Will fix in a bit, thanks for the report. >> >> Hopefully fixed now, closing. Please reopen or revert if I messed up :-= ) > > I think, in hash_table_free_kv you forgot to update > hash_table_allocated_bytes. It would probably best to call > hash_table_free_bytes. Thanks, did that! Pip