Changeset 1863 for trunk/src/kmk/main.c
- Timestamp:
- Oct 14, 2008, 11:46:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r1856 r1863 644 644 #endif 645 645 646 #ifdef CONFIG_WITH_ALLOC_CACHES 647 struct alloccache dep_cache; 648 struct alloccache nameseq_cache; 649 struct alloccache variable_cache; 650 651 static void 652 initialize_global_alloc_caches (void) 653 { 654 alloccache_init (&dep_cache, sizeof (struct dep), "dep", NULL, NULL); 655 alloccache_init (&nameseq_cache, sizeof (struct nameseq), "nameseq", NULL, NULL); 656 alloccache_init (&variable_cache, sizeof (struct variable), "variable", NULL, NULL); 657 } 658 #endif 659 646 660 static void 647 661 initialize_global_hash_tables (void) … … 1271 1285 #ifndef ELECTRIC_HEAP /* Drop this because it prevent JIT debugging. */ 1272 1286 SetUnhandledExceptionFilter(handle_runtime_exceptions); 1273 #endif /* !ELECTRIC T_HEAP */1287 #endif /* !ELECTRIC_HEAP */ 1274 1288 1275 1289 /* start off assuming we have no shell */ … … 1468 1482 user_access (); 1469 1483 1484 #ifdef CONFIG_WITH_ALLOC_CACHES 1485 initialize_global_alloc_caches (); 1486 #endif 1470 1487 initialize_global_hash_tables (); 1471 1488 … … 2674 2691 char *p = *default_goal_name; 2675 2692 2693 #ifndef CONFIG_WITH_ALLOC_CACHES 2676 2694 ns = multi_glob ( 2677 2695 parse_file_seq (&p, '\0', sizeof (struct nameseq), 1), 2678 2696 sizeof (struct nameseq)); 2697 #else 2698 ns = multi_glob ( 2699 parse_file_seq (&p, '\0', &nameseq_cache, 1), 2700 &nameseq_cache); 2701 #endif 2679 2702 2680 2703 /* .DEFAULT_GOAL should contain one target. */ … … 3604 3627 print_vpath_data_base (); 3605 3628 strcache_print_stats ("#"); 3629 #ifdef CONFIG_WITH_ALLOC_CACHES 3630 alloccache_print_all (); 3631 #endif 3606 3632 3607 3633 when = time ((time_t *) 0);
Note:
See TracChangeset
for help on using the changeset viewer.