1 --- /tmp/jemalloc.c 2008-06-23 10:57:36.000000000 +0200
2 +++ mozilla/memory/jemalloc/jemalloc.c 2008-06-23 11:20:13.000000000 +0200
10 # define QUANTUM_2POW_MIN 4
11 # define SIZEOF_PTR_2POW 2
13 # define QUANTUM_2POW_MIN 4
14 # define SIZEOF_PTR_2POW 2
18 #define SIZEOF_PTR (1U << SIZEOF_PTR_2POW)
21 * knowledge of how _pthread_self() calculates values, we can't
22 * easily do much better than this.
24 - ind = (unsigned long) _pthread_self() % narenas;
25 + ind = 255255 % narenas;
28 * Optimistially assume that arenas[ind] has been initialized.