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/b7d7d92b9eda
branches:  trunk
changeset: 997539:b7d7d92b9eda
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 b017ffc32559 -r b7d7d92b9eda 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