From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS signals and Emacs Date: Mon, 22 Apr 2024 13:54:15 +0300 Message-ID: <86mspl652g.fsf@gnu.org> References: <878r16n5jl.fsf@gmail.com> <87ttjulb16.fsf@gmail.com> <86a5ll7wj9.fsf@gnu.org> <71431fc4-2ab2-4778-88df-25d4e315d737@cs.ucla.edu> <00fec231-a625-406e-a51b-cb66710c6482@cs.ucla.edu> <86wmop6cot.fsf@gnu.org> <86v8496ajl.fsf@gnu.org> <86ttjt69i2.fsf@gnu.org> <86sezd68g8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20370"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 22 12:55:19 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 1ryrKQ-00052o-Rh for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Apr 2024 12:55:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryrJc-0002Ib-4R; Mon, 22 Apr 2024 06:54:28 -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 1ryrJa-0002IK-Cn for emacs-devel@gnu.org; Mon, 22 Apr 2024 06:54:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryrJZ-0000jM-B8; Mon, 22 Apr 2024 06:54:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Doe0tswHGdL87L/u25VwfolL7AnVtWNFQvuSaMrwn1U=; b=BXc4u8yhj9xU/g0Ih9uv 72LEbFPYn0VWyiD5t46+AduhguQLlkQvfveD7eeshrzLiD/yNHHgbgciZ4EHuXKSV4Te8/UcTXQm8 8aeu3wDqRUI8H+0JKh0GlLwFMVbcpJDPMBtcroR9GVfDhQMEPZ61QgBfrjSFvwN4hR+chvQAqbFdl zJicgq9S6/cNZLpRFBdzTCvGL5qYFWZsL7gqZ/Chi/P5mWb7e3xWLID/pbNlz4eba9eUtDfowWGBi J3stWYMyebasUGvA9fOklsH4RmjP2El4jLPOYTCMtDH5Qh1DxutVKgffRPlzrWpiCLV3a4FqvE1nl cN8S+4UjA0s+2w==; In-Reply-To: (message from Gerd =?utf-8?Q?M?= =?utf-8?Q?=C3=B6llmann?= on Mon, 22 Apr 2024 12:22:25 +0200) 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:317973 Archived-At: > From: Gerd Möllmann > Cc: eggert@cs.ucla.edu, eller.helmut@gmail.com, emacs-devel@gnu.org > Date: Mon, 22 Apr 2024 12:22:25 +0200 > > Eli Zaretskii writes: > > > Doesn't copying GC work by copying live objects to a new memory > > region, and then freeing the old region? If so, if some objects > > cannot be moved, how can the old region be freed? > > Yes. A simple precise GC (no support for ambiguous references) might > work with 2 regions, which are usually called to-space and froms-space. > When a GC happens, everything live is copied from from-space to > to-space. At the end, to-space has all live objects, and both spaces can > switch roles in the next GC. Btw, does this mean that a copying GC will make the memory used for live objects roughly doubled in size?