Enable the stats configuration option by default.
diff --git a/INSTALL b/INSTALL
index f9c8a36..b84fb1b 100644
--- a/INSTALL
+++ b/INSTALL
@@ -62,8 +62,8 @@
Enable assertions and validation code. This incurs a substantial
performance hit, but is very useful during application development.
---enable-stats
- Enable statistics gathering functionality. See the "opt.stats_print"
+--disable-stats
+ Disable statistics gathering functionality. See the "opt.stats_print"
option documentation for usage details.
--enable-prof
diff --git a/configure.ac b/configure.ac
index 3fa2491..78f7c8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -423,7 +423,7 @@
fi
fi
-dnl Do not enable statistics calculation by default.
+dnl Enable statistics calculation by default.
AC_ARG_ENABLE([stats],
[AS_HELP_STRING([--enable-stats], [Enable statistics calculation/reporting])],
[if test "x$enable_stats" = "xno" ; then
@@ -432,7 +432,7 @@
enable_stats="1"
fi
],
-[enable_stats="0"]
+[enable_stats="1"]
)
if test "x$enable_stats" = "x1" ; then
AC_DEFINE([JEMALLOC_STATS], [ ])
@@ -896,7 +896,6 @@
AC_MSG_RESULT([fill : ${enable_fill}])
AC_MSG_RESULT([xmalloc : ${enable_xmalloc}])
AC_MSG_RESULT([dss : ${enable_dss}])
-AC_MSG_RESULT([dynamic_page_shift : ${enable_dynamic_page_shift}])
AC_MSG_RESULT([lazy_lock : ${enable_lazy_lock}])
AC_MSG_RESULT([tls : ${enable_tls}])
AC_MSG_RESULT([===============================================================================])
diff --git a/src/jemalloc.c b/src/jemalloc.c
index cc0188c..a3a9a70 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -882,8 +882,6 @@
}
errno = ENOMEM;
}
-
-RETURN:
if (config_prof && opt_prof && ret != NULL)
prof_malloc(ret, usize, cnt);
if (config_stats && ret != NULL) {