Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: hrealloc
- X-seq: zsh-workers 9330
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: hrealloc
- Date: Mon, 17 Jan 2000 11:09:40 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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