>>>>"AK" == Aidan Kehoe
<kehoea(a)parhasard.net> writes:
AK> Ar an séú lá is fiche de mí Márta, scríobh Marcus Crestani>:
> With this patch, the allocator is informed about memory shortage
and
> then allocates only the needed pages and no larger blocks. This may
> keep XEmacs alive until the garbage collector can free enough memory
> and recovers from the memory exhaustion. If the recovery is not
> pssible, XEmacs aborts rather than printing "memory full" in a loop.
AK> If I read this patch correctly, this bit:
> +/* malloc calls this if it finds we are near exhausting storage
*/
> +void
> +malloc_warning (const char *str)
> +{
> + if (ignore_malloc_warnings)
> + return;
> +
> + /* Remove the malloc lock here, because warn_when_safe may allocate
> + again. It is safe to remove the malloc lock here, because malloc
> + is already finished (malloc_warning is called via
> + after_morecore_hook -> check_memory_limits -> save_warn_fun ->
> + malloc_warning). */
> + MALLOC_END ();
AK> addresses the bug that~s been around for aaaages and that
AK> 17325.40188.121589.594028(a)parhasard.net , which was backed out,
AK> was supposed to address. Is that the case?
Yes, that's right.
--
Marcus