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: dangling markers Date: Sat, 29 Jun 2024 23:20:33 +0200 Message-ID: References: <87v81u85hv.fsf@localhost> <87frsx81m2.fsf@localhost> <87cyo180y2.fsf@localhost> <874j9d7zqe.fsf@localhost> <87sewvg6lw.fsf@localhost> 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="18312"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , emacs-devel@gnu.org, Eli Zaretskii , eller.helmut@gmail.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 29 23:21:46 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 1sNfVy-0004gu-2e for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jun 2024 23:21:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNfUx-0005AH-5N; Sat, 29 Jun 2024 17:20:43 -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 1sNfUu-00059y-Pu for emacs-devel@gnu.org; Sat, 29 Jun 2024 17:20:40 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNfUq-0007Nx-UB; Sat, 29 Jun 2024 17:20:39 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-367601ca463so981701f8f.0; Sat, 29 Jun 2024 14:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719696035; x=1720300835; 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=3CZmIradi1SfBnWnhV/U2/kgoH9G8R5YA7d5E2DhK28=; b=OYNiF+CvMMgjDsIgJhW738+4Lo1hbcxogfT8xQIn1Jldio4/vNmZZkEQSROEi/5278 DRgH//mAjJy+ieZQE8tu3b1XjNLXHuJsFDTIatH9gDO7uP5KDwl+546sJzLT1Q9dSRJm ttZr7zAnXlGOdf3/IjQl3doej3z9r5mNqim+Lq9k0TtUh5PnMRfNHK6uBWKo7/j6B/Ql 7WIny+bDzdTzD+11K+IHp8L43/aGnM4kh1w7D+NWrUjbu2OPWplJBqMSNFGzrclEaBur F4PkijE20tW7OCmMgCIqGGapupQs/ideiBhZszTiTHf8FIFyQ1/ahpMoOj3ls9nKf4OK yGcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719696035; x=1720300835; 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=3CZmIradi1SfBnWnhV/U2/kgoH9G8R5YA7d5E2DhK28=; b=paoX8OkZXXxuao/vCCpMYO6eGQVysNflxIyJNQ6MfjojmlWNiuFdAH1BG7Xbvg2XxS oqY/SC2Kt/FIo5c73d/EPS3/7nYSeHf9QLKsPaFOZCljcH9Uls5BA8wHd0E0tQclGrHi BoRq6yCZZEmeeJigkCCkfN1ftiQYhC++ckc7mgWGCpokXS8eCjeI4E2AA7+Kz67Kmyq0 APQt+xpGUHi4VMgpFcoJkXslk4RFUAc3FbzUxvXp2tF0rP5FiPtDRtXLIlo+icNZDeZd QuNmashqZ9nnMFhg60xgZiI74O06TFtnubwJniyXtTPNdiC/dAZXeCtj00+NuI0n9JSL qKCQ== X-Forwarded-Encrypted: i=1; AJvYcCUm9jktm9/JIiJNEl2/VOwPm91B9cGUb5+gC4u9pGaBWSi/rNXzRjof3SPDZzToogrnPvNPN9YUsBjW15L4cm3R2qD+Q/VdJ62DpjOigVmRumM= X-Gm-Message-State: AOJu0YypuinIb5Cf53HQ7lMbBYSt27231SHLfx4GbrAdaDO4XPXQ1Hp4 Znp4b03dSy2xF7T6JDMVxA2KSJHVDIPWXtLvYkIyP5ZHPIhDca+i X-Google-Smtp-Source: AGHT+IGi9j5NIRvPkGKxzYRQ4rk6UPx4h5oLEcpW1sHJ0FW0fEyjsgJQw54Hr5Nh1XRL0n0yHR4yEQ== X-Received: by 2002:a05:6000:156a:b0:366:e7e2:13c8 with SMTP id ffacd0b85a97d-3677569944dmr1435466f8f.11.1719696034734; Sat, 29 Jun 2024 14:20:34 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36598.dip0.t-ipconnect.de. [217.227.101.152]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a112a54sm5739854f8f.115.2024.06.29.14.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jun 2024 14:20:34 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 29 Jun 2024 20:52:48 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x42b.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:320888 Archived-At: Gerd M=C3=B6llmann writes: > And that makes sense. I'll try tomorrow to add something to igc that > Ihor can tell us how many markers there are that are allocated in the > place Eli showed. Can't sleep (football), so: I ended up adding an integer parameter to build_marker, which is different for each call site, because the markers built in marker.c which Eli pointed to were not the problem, at least for what I did. I start Emacs, M-x igc-stats which let's me see the number of markers. Then repeated g to see the number of markers go up. What I see is a rapid growth in markers, by the hundreds each time I refresh, and the histogram looks like this [0 12 3039 0 8 9 19 0 0 0 47365 8 13 0 0 0 0 0 0 0 2618 2618 0 0 0 0 0 0 0 0] And 10 is DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0, doc: /* Return value of point, as a marker object. */) (void) { return build_marker (current_buffer, PT, PT_BYTE, 10); } Don't know who calls that, but it absolutely dominates.