Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/dist/include/jemalloc/internal Sync wi...
details: https://anonhg.NetBSD.org/src/rev/586a4184580a
branches: trunk
changeset: 449644:586a4184580a
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 14 18:59:37 2019 +0000
description:
Sync with installed versions.
diffstat:
external/bsd/jemalloc/dist/include/jemalloc/internal/arena_externs.h | 4 ++--
external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_a.h | 2 +-
external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_b.h | 4 ++--
external/bsd/jemalloc/dist/include/jemalloc/internal/atomic_gcc_atomic.h | 6 ++----
external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_a.h | 2 +-
external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_b.h | 10 +++++-----
6 files changed, 13 insertions(+), 15 deletions(-)
diffs (130 lines):
diff -r e1faf35e98ab -r 586a4184580a external/bsd/jemalloc/dist/include/jemalloc/internal/arena_externs.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/arena_externs.h Thu Mar 14 18:56:12 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/arena_externs.h Thu Mar 14 18:59:37 2019 +0000
@@ -56,8 +56,8 @@
szind_t ind, bool zero);
void *arena_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize,
size_t alignment, bool zero, tcache_t *tcache);
-void arena_prof_promote(tsdn_t *tsdn, const void *ptr, size_t usize);
-void arena_dalloc_promoted(tsdn_t *tsdn, void *ptr, tcache_t *tcache,
+JEMALLOC_NORETURN void arena_prof_promote(tsdn_t *tsdn, const void *ptr, size_t usize);
+JEMALLOC_NORETURN void arena_dalloc_promoted(tsdn_t *tsdn, void *ptr, tcache_t *tcache,
bool slow_path);
void arena_dalloc_bin_junked_locked(tsdn_t *tsdn, arena_t *arena,
extent_t *extent, void *ptr);
diff -r e1faf35e98ab -r 586a4184580a external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_a.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_a.h Thu Mar 14 18:56:12 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_a.h Thu Mar 14 18:59:37 2019 +0000
@@ -32,7 +32,7 @@
return prof_accum_add(tsdn, &arena->prof_accum, accumbytes);
}
-static inline void
+static JEMALLOC_NORETURN inline void
percpu_arena_update(tsd_t *tsd, unsigned cpu) {
assert(have_percpu_arena);
arena_t *oldarena = tsd_arena_get(tsd);
diff -r e1faf35e98ab -r 586a4184580a external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_b.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_b.h Thu Mar 14 18:56:12 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/arena_inlines_b.h Thu Mar 14 18:59:37 2019 +0000
@@ -27,7 +27,7 @@
return (prof_tctx_t *)(uintptr_t)1U;
}
-JEMALLOC_ALWAYS_INLINE void
+JEMALLOC_NORETURN JEMALLOC_ALWAYS_INLINE void
arena_prof_tctx_set(tsdn_t *tsdn, const void *ptr, UNUSED size_t usize,
alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) {
cassert(config_prof);
@@ -46,7 +46,7 @@
}
}
-static inline void
+static JEMALLOC_NORETURN inline void
arena_prof_tctx_reset(tsdn_t *tsdn, const void *ptr, UNUSED prof_tctx_t *tctx) {
cassert(config_prof);
assert(ptr != NULL);
diff -r e1faf35e98ab -r 586a4184580a external/bsd/jemalloc/dist/include/jemalloc/internal/atomic_gcc_atomic.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/atomic_gcc_atomic.h Thu Mar 14 18:56:12 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/atomic_gcc_atomic.h Thu Mar 14 18:59:37 2019 +0000
@@ -36,8 +36,7 @@
__atomic_thread_fence(atomic_enum_to_builtin(mo));
}
-#define JEMALLOC_GENERATE_ATOMICS(type, short_type, \
- /* unused */ lg_size) \
+#define JEMALLOC_GENERATE_ATOMICS(type, short_type, lg_size) \
typedef struct { \
type repr; \
} atomic_##short_type##_t; \
@@ -85,8 +84,7 @@
}
-#define JEMALLOC_GENERATE_INT_ATOMICS(type, short_type, \
- /* unused */ lg_size) \
+#define JEMALLOC_GENERATE_INT_ATOMICS(type, short_type, lg_size) \
JEMALLOC_GENERATE_ATOMICS(type, short_type, /* unused */ lg_size) \
\
ATOMIC_INLINE type \
diff -r e1faf35e98ab -r 586a4184580a external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_a.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_a.h Thu Mar 14 18:56:12 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_a.h Thu Mar 14 18:59:37 2019 +0000
@@ -41,7 +41,7 @@
return overflow;
}
-static inline void
+static JEMALLOC_NORETURN inline void
prof_accum_cancel(tsdn_t *tsdn, prof_accum_t *prof_accum, size_t usize) {
cassert(config_prof);
diff -r e1faf35e98ab -r 586a4184580a external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_b.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_b.h Thu Mar 14 18:56:12 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/prof_inlines_b.h Thu Mar 14 18:59:37 2019 +0000
@@ -44,7 +44,7 @@
return arena_prof_tctx_get(tsdn, ptr, alloc_ctx);
}
-JEMALLOC_ALWAYS_INLINE void
+JEMALLOC_NORETURN JEMALLOC_ALWAYS_INLINE void
prof_tctx_set(tsdn_t *tsdn, const void *ptr, size_t usize,
alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) {
cassert(config_prof);
@@ -53,7 +53,7 @@
arena_prof_tctx_set(tsdn, ptr, usize, alloc_ctx, tctx);
}
-JEMALLOC_ALWAYS_INLINE void
+JEMALLOC_NORETURN JEMALLOC_ALWAYS_INLINE void
prof_tctx_reset(tsdn_t *tsdn, const void *ptr, prof_tctx_t *tctx) {
cassert(config_prof);
assert(ptr != NULL);
@@ -118,7 +118,7 @@
return ret;
}
-JEMALLOC_ALWAYS_INLINE void
+JEMALLOC_NORETURN JEMALLOC_ALWAYS_INLINE void
prof_malloc(tsdn_t *tsdn, const void *ptr, size_t usize, alloc_ctx_t *alloc_ctx,
prof_tctx_t *tctx) {
cassert(config_prof);
@@ -133,7 +133,7 @@
}
}
-JEMALLOC_ALWAYS_INLINE void
+JEMALLOC_NORETURN JEMALLOC_ALWAYS_INLINE void
prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, prof_tctx_t *tctx,
bool _prof_active, bool updated, const void *old_ptr, size_t old_usize,
prof_tctx_t *old_tctx) {
@@ -191,7 +191,7 @@
}
}
-JEMALLOC_ALWAYS_INLINE void
+JEMALLOC_NORETURN JEMALLOC_ALWAYS_INLINE void
prof_free(tsd_t *tsd, const void *ptr, size_t usize, alloc_ctx_t *alloc_ctx) {
prof_tctx_t *tctx = prof_tctx_get(tsd_tsdn(tsd), ptr, alloc_ctx);
Home |
Main Index |
Thread Index |
Old Index