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/7a29b2b90aca
branches:  trunk
changeset: 839768:7a29b2b90aca
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 e9470acb7664 -r 7a29b2b90aca 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 e9470acb7664 -r 7a29b2b90aca 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