| @@ -198,27 +198,32 @@ | | | @@ -198,27 +198,32 @@ |
198 | #endif | | 198 | #endif |
199 | | | 199 | |
200 | #include "ctf_headers.h" | | 200 | #include "ctf_headers.h" |
201 | #include "ctftools.h" | | 201 | #include "ctftools.h" |
202 | #include "ctfmerge.h" | | 202 | #include "ctfmerge.h" |
203 | #include "traverse.h" | | 203 | #include "traverse.h" |
204 | #include "memory.h" | | 204 | #include "memory.h" |
205 | #include "fifo.h" | | 205 | #include "fifo.h" |
206 | #include "barrier.h" | | 206 | #include "barrier.h" |
207 | | | 207 | |
208 | #pragma init(bigheap) | | 208 | #pragma init(bigheap) |
209 | | | 209 | |
210 | #define MERGE_PHASE1_BATCH_SIZE 8 | | 210 | #define MERGE_PHASE1_BATCH_SIZE 8 |
| | | 211 | #if 0 |
| | | 212 | // XXX: bug? |
211 | #define MERGE_PHASE1_MAX_SLOTS 5 | | 213 | #define MERGE_PHASE1_MAX_SLOTS 5 |
| | | 214 | #else |
| | | 215 | #define MERGE_PHASE1_MAX_SLOTS 1 |
| | | 216 | #endif |
212 | #define MERGE_INPUT_THROTTLE_LEN 10 | | 217 | #define MERGE_INPUT_THROTTLE_LEN 10 |
213 | | | 218 | |
214 | const char *progname; | | 219 | const char *progname; |
215 | static char *outfile = NULL; | | 220 | static char *outfile = NULL; |
216 | static char *tmpname = NULL; | | 221 | static char *tmpname = NULL; |
217 | static int dynsym; | | 222 | static int dynsym; |
218 | int debug_level = DEBUG_LEVEL; | | 223 | int debug_level = DEBUG_LEVEL; |
219 | #if 0 | | 224 | #if 0 |
220 | static size_t maxpgsize = 0x400000; | | 225 | static size_t maxpgsize = 0x400000; |
221 | #endif | | 226 | #endif |
222 | static int maxslots = MERGE_PHASE1_MAX_SLOTS; | | 227 | static int maxslots = MERGE_PHASE1_MAX_SLOTS; |
223 | | | 228 | |
224 | | | 229 | |