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/732d88a5146a
branches:  trunk
changeset: 997856:732d88a5146a
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 098637be0b40 -r 732d88a5146a 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