Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: hrealloc



I don't really understand the DPUTS below, but at least if USE_MMAP is 
true, it shouldn't be performed because it can happen -- and is
perfectly save, as far as I can see.

Bye
 Sven

--- ../z.old/Src/mem.c	Mon Jan 17 10:10:37 2000
+++ Src/mem.c	Mon Jan 17 11:04:39 2000
@@ -454,7 +454,9 @@
 	return arena(h);
 #endif
     }
+#ifndef USE_MMAP
     DPUTS(h->used > HEAP_ARENA_SIZE, "BUG: hrealloc at invalid address");
+#endif
     if (h->used + (new - old) <= HEAP_ARENA_SIZE) {
 	h->used += new - old;
 	return p;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author