emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs and Gnome Canvas


From: Andreas Schwab
Subject: Re: Emacs and Gnome Canvas
Date: Sat, 17 Jul 2010 10:34:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Eli Zaretskii <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]