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.
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 ();
addresses the bug that’s been around for aaaages and that
17325.40188.121589.594028(a)parhasard.net , which was backed out, was supposed
to address. Is that the case?
--
In the beginning God created the heavens and the earth. And God was a
bug-eyed, hexagonal smurf with a head of electrified hair; and God said:
“Si, mi chiamano Mimi...”