Date: Mon, 4 May 2020 17:16:30 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r360635 - in head/contrib/jemalloc: . include/jemalloc Message-ID: <202005041716.044HGU5p030765@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brooks Date: Mon May 4 17:16:30 2020 New Revision: 360635 URL: https://svnweb.freebsd.org/changeset/base/360635 Log: Set LG_VADDR to 48 on RISC-V. The Sv48 PTE format is the largest currently defined address space for RISC-V. It makes no sense to define a larger size and doing so (at least for 64-bits) forces rtrees down a slow path. Reviewed by: vangyzen, jhb, mhorne Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24658 Modified: head/contrib/jemalloc/FREEBSD-diffs head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h Modified: head/contrib/jemalloc/FREEBSD-diffs ============================================================================== --- head/contrib/jemalloc/FREEBSD-diffs Mon May 4 16:50:01 2020 (r360634) +++ head/contrib/jemalloc/FREEBSD-diffs Mon May 4 17:16:30 2020 (r360635) @@ -233,7 +233,7 @@ index 00000000..b752b0e7 +# define LG_SIZEOF_PTR 2 +#endif +#ifdef __riscv -+# define LG_VADDR 64 ++# define LG_VADDR 48 +# define LG_SIZEOF_PTR 3 +#endif + Modified: head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h ============================================================================== --- head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h Mon May 4 16:50:01 2020 (r360634) +++ head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h Mon May 4 17:16:30 2020 (r360635) @@ -68,7 +68,7 @@ # define LG_SIZEOF_PTR 2 #endif #ifdef __riscv -# define LG_VADDR 64 +# define LG_VADDR 48 # define LG_SIZEOF_PTR 3 #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005041716.044HGU5p030765>