3 #define nth_bit(x, n) ((x >> n) & 1)
5 void* a##N(int x) { return ( nth_bit(x, N) ? a##Np1(x) : a##Np1(x) ); }
7 // This test allocates a lot of heap memory, and every allocation features a
8 // different stack trace -- the stack traces are effectively a
9 // representation of the number 'i', where each function represents a bit in
10 // 'i', and if it's a 1 the first function is called, and if it's a 0 the
11 // second function is called.
41 // Create a large XTree.
42 for (i
= 0; i
< (1 << 18); i
++)
45 // Do a lot of allocations so it gets dup'd a lot of times.
46 for (i
= 0; i
< 100000; i
++) {