X-Spam-Check-By: sourceware.org Message-ID: <45DEEAC4.7090202@cygwin.com> Date: Fri, 23 Feb 2007 08:23:16 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061221 Fedora/1.5.0.9-1.fc4.remi Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: FW: Re: [emacs_user AT hotmail DOT com: ***MEMORY-ERROR***: emacs[5172]: GSlice: failed References: <45D9678E DOT 7090108 AT swipnet DOT se> <45DA98EF DOT 6040205 AT swipnet DOT se> <45DB2A13 DOT 6070606 AT swipnet DOT se> <45DC1AAD DOT 5050109 AT swipnet DOT se> <45DD3F89 DOT 60400 AT swipnet DOT se> <45DE9352 DOT 5070706 AT swipnet DOT se> In-Reply-To: <45DE9352.5070706@swipnet.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Jan Djärv wrote: > Larry Hall wrote: > >> With DLLs, symbol resolution happens at link time, not runtime. The only >> way to avoid this fact is to use dllopen (in Cygwin) or LoadLibrary (in >> Win32) and friends. If glib needs to reference something in Emacs, an >> import library with these symbol resolutions must appear after the reference >> to glib on the link line. I don't know if that explains why Emacs' memalign >> is not called from glib but it hopefully clarifies the DLL linking issue >> some. > > Yes it does thanks for the explanation. Cygwin has some mechanism that makes > it possible for a program to supply its own malloc/free and friends I think > (malloc_wrapper.cc). Would it be hard to also handle memalign/valloc and > later posix_memalign in the same fashion? It already handles memalign/valloc. > Would I be correct in assuming that such an addition would make glib call the > Emacs versions? I suppose. But if Emacs is modular enough to provide its calls as a (import) library or object file, you can just list this on the link line after glib and get the same affect for Emacs/glib. This may be easier for you. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/