zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: hrealloc
@ 2000-01-17 10:09 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-01-17 10:09 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-17 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-17 10:09 PATCH: hrealloc Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).