Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/include/jemalloc/internal Change strat...
details: https://anonhg.NetBSD.org/src/rev/b5f3296c6181
branches: trunk
changeset: 449925:b5f3296c6181
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 29 12:50:30 2019 +0000
description:
Change strategy: instead of always defining PAGE_SHIFT in vmparam.h, fail
back to using MAX_PAGE_SHIFT.
diffstat:
external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r becbd6ff290a -r b5f3296c6181 external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h
--- a/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h Fri Mar 29 08:54:35 2019 +0000
+++ b/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h Fri Mar 29 12:50:30 2019 +0000
@@ -200,7 +200,13 @@
/* One page is 2^LG_PAGE bytes. */
#include <machine/vmparam.h>
+#ifdef PAGE_SHIFT
#define LG_PAGE PAGE_SHIFT
+#elifdef MAX_PAGE_SHIFT
+#define LG_PAGE MAX_PAGE_SHIFT
+#else
+#error "PAGE_SHIFT is not defined"
+#endif
/*
* One huge page is 2^LG_HUGEPAGE bytes. Note that this is defined even if the
Home |
Main Index |
Thread Index |
Old Index