Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib Fix aarch64 definition in old jemalloc



details:   https://anonhg.NetBSD.org/src/rev/2c583c2be199
branches:  trunk
changeset: 467112:2c583c2be199
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Jan 13 19:14:02 2020 +0000

description:
Fix aarch64 definition in old jemalloc

There is no platform-specific reason for avoiding TLS. The tiny
allocations should be aligned the same as small allocations for ABI
reasons.

diffstat:

 lib/libc/stdlib/jemalloc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6af0992fa168 -r 2c583c2be199 lib/libc/stdlib/jemalloc.c
--- a/lib/libc/stdlib/jemalloc.c        Mon Jan 13 19:03:03 2020 +0000
+++ b/lib/libc/stdlib/jemalloc.c        Mon Jan 13 19:14:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jemalloc.c,v 1.46 2019/03/28 15:05:03 christos Exp $   */
+/*     $NetBSD: jemalloc.c,v 1.47 2020/01/13 19:14:02 joerg Exp $      */
 
 /*-
  * Copyright (C) 2006,2007 Jason Evans <jasone%FreeBSD.org@localhost>.
@@ -118,7 +118,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.147 2007/06/15 22:00:16 jasone Exp $"); */ 
-__RCSID("$NetBSD: jemalloc.c,v 1.46 2019/03/28 15:05:03 christos Exp $");
+__RCSID("$NetBSD: jemalloc.c,v 1.47 2020/01/13 19:14:02 joerg Exp $");
 
 #ifdef __FreeBSD__
 #include "libc_private.h"
@@ -216,7 +216,7 @@
 #ifdef __aarch64__
 #  define QUANTUM_2POW_MIN     4
 #  define SIZEOF_PTR_2POW      3
-#  define NO_TLS
+#  define TINY_MIN_2POW                3
 #endif
 #ifdef __alpha__
 #  define QUANTUM_2POW_MIN     4



Home | Main Index | Thread Index | Old Index