[Top][All Lists]

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

Re: Dynamic loading progress

From: Paul Eggert
Subject: Re: Dynamic loading progress
Date: Sun, 22 Nov 2015 10:50:07 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Thanks for the patch, but this handles only part of the problem, namely, the memory allocated by emacs-module.c directly. We need a way for modules themselves to allocate memory that is properly accounted for, and this allocation should be nearly as convenient as xmalloc so that modules don't need to check for failure after each allocation.

Since emacs-module.c can invoke xmalloc, surely it can export a memory-allocator function implemented via xmalloc, using the same techniques emacs-module.c is already using to call xmalloc in your patch. This should work regardless of whether the module is written in C or C++.

reply via email to

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