mwrap (Perl version) user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] mymalloc: use file-backed DIRECT_MMAP, too
@ 2023-02-01  5:58 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-02-01  5:58 UTC (permalink / raw)
  To: mwrap-perl

I was wondering why I was still using anonymous mappings,
and now I know :x
---
 mymalloc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mymalloc.h b/mymalloc.h
index 196ccc0..773d3ce 100644
--- a/mymalloc.h
+++ b/mymalloc.h
@@ -96,6 +96,7 @@ static void *my_mmap(size_t size)
 #define USE_LOCKS 0 /* we do our own global_mtx + ms_tsd */
 #if MWRAP_FILE_BACKED
 #	define MMAP(size) my_mmap(size)
+#	define DIRECT_MMAP(size) my_mmap(size)
 #	define HAVE_MREMAP 0
 #endif
 #include "dlmalloc_c.h"

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

only message in thread, other threads:[~2023-02-01  5:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-01  5:58 [PATCH] mymalloc: use file-backed DIRECT_MMAP, too Eric Wong

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

	https://80x24.org/mwrap-perl.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).