[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libbase jemalloc.c
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/libbase jemalloc.c |
Date: |
Tue, 29 Apr 2008 16:53:15 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 08/04/29 16:53:15
Modified files:
libbase : jemalloc.c
Log message:
Disable stats, as it effects performance.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/jemalloc.c?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: jemalloc.c
===================================================================
RCS file: /sources/gnash/gnash/libbase/jemalloc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- jemalloc.c 29 Apr 2008 16:50:49 -0000 1.1
+++ jemalloc.c 29 Apr 2008 16:53:15 -0000 1.2
@@ -1057,7 +1057,7 @@
/*
* this toggles the printing of statistics when the program exists.
*/
-static bool opt_print_stats = true;
+static bool opt_print_stats = false;
static size_t opt_quantum_2pow = QUANTUM_2POW_MIN;
static size_t opt_small_max_2pow = SMALL_MAX_2POW_DEFAULT;
static size_t opt_chunk_2pow = CHUNK_2POW_DEFAULT;
@@ -5839,54 +5839,6 @@
}
}
-/* /\* */
-/* * This is a work in progress, which doesn't even get used. */
-/* *\/ */
-/* #ifdef USE_STATS_MEMORY */
-/* #ifndef DARWIN */
-/* DSOEXPORT */
-/* struct mallinfo */
-/* mallinfo() */
-/* { */
-/* struct mallinfo mi; */
-/* size_t allocated = 0; */
-/* size_t mapped = 0; */
-/* arena_t *arena; */
-/* size_t i; */
-
-/* /\* Calculate and print allocated/mapped stats. *\/ */
-
-/* /\* arenas. *\/ */
-/* for (i = 0; i < narenas; i++) { */
-/* if (arenas[i] != NULL) { */
-/* malloc_spin_lock(&arenas[i]->lock); */
-/* mi.uordblks += */
-/* arenas[i]->stats.allocated_small; */
-/* mi.uordblks += */
-/* arenas[i]->stats.allocated_large; */
-/* malloc_spin_unlock(&arenas[i]->lock); */
-/* } */
-/* } */
-
-/* #if 0 */
-/* avail = chunksize(top(ar_ptr)); */
-/* navail = ((long)(avail) >= (long)MINSIZE)? 1 : 0; */
-
-/* // FIXME: add mutex */
-/* mi->arena = ar_ptr->size; */
-/* mi->ordblks = navail; */
-/* mi->smblks = mi->usmblks = mi->fsmblks = 0; /\* clear unused fields *\/
*/
-/* mi->uordblks = ar_ptr->size - avail; */
-/* mi->fordblks = avail; */
-/* mi->hblks = n_mmaps; */
-/* mi->hblkhd = mmapped_mem; */
-/* mi->keepcost = chunksize(top(ar_ptr)); */
-/* #endif */
-/* return mi; */
-/* } */
-/* # endif */
-/* #endif */
-
/*
* End malloc(3)-compatible functions.
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/libbase jemalloc.c,
Rob Savoye <=