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 revert previ...
details: https://anonhg.NetBSD.org/src/rev/728318908ee8
branches: trunk
changeset: 997386:728318908ee8
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 05 22:35:45 2019 +0000
description:
revert previous; not needed.
diffstat:
external/bsd/jemalloc/dist/include/jemalloc/internal/ph.h | 12 +++++-------
external/bsd/jemalloc/include/jemalloc/internal/ph.h | 12 +++++-------
2 files changed, 10 insertions(+), 14 deletions(-)
diffs (44 lines):
diff -r 2ce4bc3ee095 -r 728318908ee8 external/bsd/jemalloc/dist/include/jemalloc/internal/ph.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/ph.h Tue Mar 05 15:18:59 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/ph.h Tue Mar 05 22:35:45 2019 +0000
@@ -374,13 +374,11 @@
parent); \
} \
} else { \
- a_type *prev = phn_prev_get(a_type, a_field, \
- phn); \
- if (prev != NULL) { \
- phn_next_set(a_type, a_field, prev, \
- phn_next_get(a_type, a_field, \
- phn)); \
- } \
+ assert(phn_prev_get(a_type, a_field, phn) != \
+ NULL); \
+ phn_next_set(a_type, a_field, \
+ phn_prev_get(a_type, a_field, phn), \
+ phn_next_get(a_type, a_field, phn)); \
} \
if (phn_next_get(a_type, a_field, phn) != NULL) { \
phn_prev_set(a_type, a_field, \
diff -r 2ce4bc3ee095 -r 728318908ee8 external/bsd/jemalloc/include/jemalloc/internal/ph.h
--- a/external/bsd/jemalloc/include/jemalloc/internal/ph.h Tue Mar 05 15:18:59 2019 +0000
+++ b/external/bsd/jemalloc/include/jemalloc/internal/ph.h Tue Mar 05 22:35:45 2019 +0000
@@ -374,13 +374,11 @@
parent); \
} \
} else { \
- a_type *prev = phn_prev_get(a_type, a_field, \
- phn); \
- if (prev != NULL) { \
- phn_next_set(a_type, a_field, prev, \
- phn_next_get(a_type, a_field, \
- phn)); \
- } \
+ assert(phn_prev_get(a_type, a_field, phn) != \
+ NULL); \
+ phn_next_set(a_type, a_field, \
+ phn_prev_get(a_type, a_field, phn), \
+ phn_next_get(a_type, a_field, phn)); \
} \
if (phn_next_get(a_type, a_field, phn) != NULL) { \
phn_prev_set(a_type, a_field, \
Home |
Main Index |
Thread Index |
Old Index