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/src Add an initializatin that is ...



details:   https://anonhg.NetBSD.org/src/rev/3f7c78d15261
branches:  trunk
changeset: 449582:3f7c78d15261
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 11 18:06:28 2019 +0000

description:
Add an initializatin that is not needed when the optimizer works...

diffstat:

 external/bsd/jemalloc/dist/src/arena.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 46b7c037be09 -r 3f7c78d15261 external/bsd/jemalloc/dist/src/arena.c
--- a/external/bsd/jemalloc/dist/src/arena.c    Mon Mar 11 17:59:28 2019 +0000
+++ b/external/bsd/jemalloc/dist/src/arena.c    Mon Mar 11 18:06:28 2019 +0000
@@ -867,7 +867,8 @@
        if (epoch_advanced) {
                /* Backlog is updated on epoch advance. */
                npages_new = decay->backlog[SMOOTHSTEP_NSTEPS-1];
-       }
+       } else
+               npages_new = 0; // XXX: gcc without -O
        malloc_mutex_unlock(tsdn, &decay->mtx);
 
        if (have_background_thread && background_thread_enabled() &&



Home | Main Index | Thread Index | Old Index