Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc revert previous; not needed.
details: https://anonhg.NetBSD.org/src/rev/f9bb5394d146
branches: trunk
changeset: 449406:f9bb5394d146
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 01d6cf5df174 -r f9bb5394d146 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 01d6cf5df174 -r f9bb5394d146 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