From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Emacs and Gnome Canvas Date: Sat, 17 Jul 2010 10:34:42 +0200 Message-ID: References: <4C3ED4F9.4080603@swipnet.se> <83630hgi0r.fsf@gnu.org> <4C3EE8D6.3020607@swipnet.se> <8339vlgcax.fsf@gnu.org> <87fwzkbzg8.fsf@telefonica.net> <877hkwag6y.fsf@stupidchicken.com> <877hkwbth6.fsf@telefonica.net> <83pqyofzdg.fsf@gnu.org> <8739vkbpq5.fsf@telefonica.net> <83oce8fwlq.fsf@gnu.org> <87tyo0a11p.fsf@telefonica.net> <83k4ovg7rn.fsf@gnu.org> <87630fa4j8.fsf@telefonica.net> <83d3unfo92.fsf@gnu.org> <87wrsv8l6u.fsf@telefonica.net> <83bpa7feta.fsf@gnu.org> <87zkxr6s34.fsf@telefonica.net> <56009CA1-80D6-43CC-BC46-42002D2B4498@mit.edu> <87r5j36kc4.fsf@telefonica.net> <83630efsl8.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279355712 31488 80.91.229.12 (17 Jul 2010 08:35:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Jul 2010 08:35:12 +0000 (UTC) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 17 10:35:10 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oa2rV-0000Go-Nu for ged-emacs-devel@m.gmane.org; Sat, 17 Jul 2010 10:35:10 +0200 Original-Received: from localhost ([127.0.0.1]:36668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oa2rV-0000JU-1L for ged-emacs-devel@m.gmane.org; Sat, 17 Jul 2010 04:35:09 -0400 Original-Received: from [140.186.70.92] (port=49860 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oa2rN-0000Ii-Cz for emacs-devel@gnu.org; Sat, 17 Jul 2010 04:35:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oa2rM-0001Zj-7h for emacs-devel@gnu.org; Sat, 17 Jul 2010 04:35:01 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:60033) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oa2rD-0001YA-Vn; Sat, 17 Jul 2010 04:34:52 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 42F771C00553; Sat, 17 Jul 2010 10:34:45 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-127-155.dynamic.mnet-online.de [88.217.127.155]) by mail.mnet-online.de (Postfix) with ESMTP id 14EBD1C002FA; Sat, 17 Jul 2010 10:34:45 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id A22B9CA297; Sat, 17 Jul 2010 10:34:44 +0200 (CEST) X-Yow: .. If I cover this entire WALL with MAZOLA, who I have to give my AGENT ten per cent?? In-Reply-To: <83630efsl8.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Jul 2010 10:57:55 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:127499 Archived-At: Eli Zaretskii writes: > Emacs overrides the default `malloc' and `sbrk' functions, at least on > some platforms, and replaces them with its own implementations. Those > implementations relocate large objects on the heap behind the scenes, > whenever Emacs sees fit. I'm not sure this is "usable from C++" out > of the box. C++ objects that hold pointers to arrays might suddenly > find those pointers invalidated by the above-mentioned relocation. The relocating allocator can of course only relocate objects it knows about, so I don't know what should be the issue with C++? The objects allocated via new are just part of the normal malloc space that never gets touched by ralloc. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."