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: MPS: bignums (was: MPS: optimized build) Date: Tue, 07 May 2024 09:13:47 +0200 Message-ID: <87jzk6ytzo.fsf_-_@gmail.com> References: <87bk5j12dc.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="33680"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel , Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 07 09:14:40 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 1s4F27-0008ap-MV for ged-emacs-devel@m.gmane-mx.org; Tue, 07 May 2024 09:14:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4F1O-0002Xa-6H; Tue, 07 May 2024 03:13:54 -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 1s4F1M-0002XN-BV for emacs-devel@gnu.org; Tue, 07 May 2024 03:13:52 -0400 Original-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 1s4F1K-0002ZN-PV; Tue, 07 May 2024 03:13:52 -0400 Original-Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a59a17fcc6bso606688366b.1; Tue, 07 May 2024 00:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715066029; x=1715670829; 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=QsKSgXMROLlYV5yb+TNBUTre3NMMwF7G9syHPv+4maY=; b=egMWz44wbD66fJJXvmXoGL64yA06ZXv/+vBmCxUOHT5YFy3vJsZRWGSqpLrsaRaNIS Yv1CSl2d5cJBq01aFaoRL+wNTiioUgeb8wx4nzj9kM+3p5ue1Nn6HMMERsgGQwQMkdh6 IaRgpv9QIKH7un01ShU3zJQ81sZkNEPc+/0+NhwBawPxgXWAMPX/EBoBY5GLcerax8Gy vuED7kE87VGk8WYw8KR2vKDFxlEmKlucgAvcFddBiMh5ZbVBbzDGtN7CWqPTTQsNuj3w h6o1bs4/g2Nb+fd7og26Fys9XoVP4HK4pjZaAGW5FOhmHb3bQiMaUs/Aoo98E8zuYl8V dmtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715066029; x=1715670829; 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=QsKSgXMROLlYV5yb+TNBUTre3NMMwF7G9syHPv+4maY=; b=ahcfE8tvdqIsHHURcFbOtDy91p7kReOpEsAe0ovoJjimuc+Byf4ULTdQlDjIhqMJBD /DrTF30JOttIhRj1nNbXXkUA5LT4THfuT7y5ThZTf9X04dj75xd8vNMJ0whZWAwfzoNV 5+wIVHTXMVxyqGk4DKVrwGBlynrZaclLpBZwOvzRIlOFykTdzagzSJR2Ldt97DjBrnmV IfJDEaUuEsPwJJyPZfRAcOsLE8w52qGvMCyqXQQnrq6RAJPrpaL/1kkn0ddR+RB6B3cx C0xd+C6fC9t6Ectxm7x1OF6LcBgJKX3LFMOXBq3JZLOkF4HVadEvwTn5C+1kCXBIvEM9 Ld5w== X-Forwarded-Encrypted: i=1; AJvYcCWyQfEI3/soKYLfJH7OpT5QNIvPrT5fYgs13HXVPi2wSITzuvm3oixgPY9ufFQOj7dsLChBb0VPrcZ32fc= X-Gm-Message-State: AOJu0Yyrh8B+YxfZmWykTcVqD3Tp6LGROcCvPEgLkseUBmbMWL5qlM2B qTUXKXUNYxxj9dsvZZ5GI8MisUgsuTxkW0+/FovnuM8x+77dF85ubcu9FQ== X-Google-Smtp-Source: AGHT+IHqBZiSLFDNlFibocN3aBAzlD+5LamJLRFqpXFrTl9KXuUvxFWNWTH7Qq8fWnjA6d+B7wtP5g== X-Received: by 2002:a17:907:97c7:b0:a59:cf38:5345 with SMTP id js7-20020a17090797c700b00a59cf385345mr3085578ejc.42.1715066028624; Tue, 07 May 2024 00:13:48 -0700 (PDT) Original-Received: from caladan (dial-184253.pool.broadband44.net. [212.46.184.253]) by smtp.gmail.com with ESMTPSA id f10-20020a170906084a00b00a59a2ec20e4sm4250424ejd.175.2024.05.07.00.13.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 00:13:48 -0700 (PDT) In-Reply-To: <87bk5j12dc.fsf@gmail.com> (Helmut Eller's message of "Mon, 06 May 2024 15:44:31 +0200") 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-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:318923 Archived-At: On Mon, May 06 2024, Helmut Eller wrote: > I had to disable the pidigits program because the MPS version ate all > memory and began to swap. There's probably something wrong with > bignums. It seems that bignums aren't freed because that would need finalization. But as long as Emacs is busy executing the benchmark program, it doesn't process finalization messages. We could create a separate finalization thread that processes these messages. For bignums this thread could call mpz_clear, which I suppose is thread safe. Things aren't so easy for the case where we need to call a Lisp function. We could create a timer that calls this function. WDYT?