This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19614] Excessive memory consumption with a class with large (200) virtual (pure?) function and derived classes
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2005 01:40:57 -0000
- Subject: [Bug c++/19614] Excessive memory consumption with a class with large (200) virtual (pure?) function and derived classes
- References: <20050124205844.19614.dmartin@cliftonlabs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-25 01:40 -------
cp/parser.c:285 (cp_lexer_new_main) 0: 0.0% 22585856:63.1% 0: 0.0%
6332928:24.0% 5
tree.c:966 (build_constructor_from_list) 28488: 0.0% 0: 0.0% 38444792:40.2%
9123452:34.6% 7212
cp/decl.c:11123 (cxx_push_function_context) 396000: 0.2% 0: 0.0% 147600: 0.2%
65232: 0.2% 5436
cp/pt.c:5954 (tsubst_template_args) 449196: 0.2% 0: 0.0% 115304: 0.1% 31156:
0.1% 18671
cp/decl.c:533 (poplevel) 390540: 0.2% 0: 0.0% 178440: 0.2% 75864: 0.3%
9483
cp/class.c:7042 (dfs_accumulate_vtbl_inits) 107680: 0.0% 0: 0.0% 480640: 0.5% 0:
0.0% 18385
tree.c:3643 (build_distinct_type_copy) 69888: 0.0% 0: 0.0% 532608: 0.6% 0:
0.0% 6276
cp/method.c:131 (make_thunk) 0: 0.0% 0: 0.0% 605200: 0.6% 35600:
0.1% 4450
tree.c:607 (copy_list) 1408: 0.0% 0: 0.0% 622904: 0.7% 0: 0.0%
11501
c-semantics.c:120 (build_stmt) 436032: 0.2% 0: 0.0% 221680: 0.2% 2116:
0.0% 18967
cp/class.c:7049 (dfs_accumulate_vtbl_inits) 121140: 0.0% 0: 0.0% 540720: 0.6% 0:
0.0% 18385
ggc-common.c:193 (ggc_calloc) 383944: 0.2% 30792: 0.1% 280544: 0.3%
13732: 0.1% 1953
cp/lex.c:693 (retrofit_lang_decl) 54180: 0.0% 17640: 0.0% 683496: 0.7% 0:
0.0% 26793
tree-inline.c:632 (copy_body_r) 746080: 0.3% 0: 0.0% 0: 0.0% 0: 0.0%
23315
tree.c:4813 (build_index_type) 702624: 0.3% 0: 0.0% 48576: 0.1% 0: 0.0%
7825
tree.c:4910 (build_array_type) 696480: 0.3% 0: 0.0% 55488: 0.1% 0: 0.0%
7833
cp/typeck.c:3701 (build_address) 307424: 0.1% 0: 0.0% 498912: 0.5% 0:
0.0% 25198
gimplify.c:476 (internal_get_tmp_var) 1062792: 0.4% 0: 0.0% 0: 0.0% 0: 0.0%
29522
cp/class.c:7381 (build_vbase_offset_vtbl_entries 1064712: 0.4% 0: 0.0% 0: 0.0% 0:
0.0% 44363
tree.c:4963 (build_function_type) 1093632: 0.4% 0: 0.0% 121536: 0.1% 0:
0.0% 12658
cp/lex.c:748 (copy_decl) 13104: 0.0% 0: 0.0% 1242932: 1.3% 62528: 0.2%
9619
cp/class.c:7571 (add_vcall_offset) 0: 0.0% 1461232: 4.1% 1612536: 1.7% 830176:
3.1% 4408
stringpool.c:77 (alloc_node) 0: 0.0% 0: 0.0% 1769144: 1.8% 0: 0.0%
34022
tree.c:5023 (build_method_type_directly) 827520: 0.3% 0: 0.0% 1007520: 1.1% 0:
0.0% 19115
cp/decl2.c:142 (cp_build_parm_decl) 114048: 0.0% 0: 0.0% 1881088: 2.0% 0:
0.0% 22672
cp/typeck.c:3713 (build_nop) 854016: 0.3% 0: 0.0% 1187744: 1.2% 0:
0.0% 63805
tree-iterator.c:47 (alloc_stmt_list) 2320176: 0.9% 0: 0.0% 38952: 0.0% 0: 0.0%
98297
tree-iterator.c:165 (tsi_link_after) 2895444: 1.2% 0: 0.0% 59172: 0.1% 0: 0.0%
246218
cp/lex.c:668 (build_lang_decl) 171560: 0.1% 71888: 0.2% 2905044: 3.0%
102068: 0.4% 26599
gimplify.c:337 (create_tmp_var_raw) 3679584: 1.5% 0: 0.0% 1152: 0.0% 0:
0.0% 38341
function.c:3782 (allocate_struct_function) 2851200: 1.1% 0: 0.0% 1062720: 1.1%
1130688: 4.3% 5436
integrate.c:115 (copy_decl_for_inlining) 7672180: 3.1% 0: 0.0% 1152: 0.0% 0:
0.0% 79887
tree-inline.c:2380 (copy_tree_r) 11958124: 4.8% 0: 0.0% 0: 0.0% 46920: 0.2%
332081
tree.c:611 (copy_list) 590920: 0.2% 0: 0.0% 13154456:13.8% 0: 0.0%
545484
cp/class.c:7582 (add_vcall_offset) 14411760: 5.8% 1305304: 3.6% 0: 0.0%
4582600:17.4% 19954
cp/class.c:7233 (build_vtbl_initializer) 4921824: 2.0% 0: 0.0% 16785472:17.6% 0:
0.0% 678353
cp/class.c:7608 (add_vcall_offset) 36323976:14.5% 0: 0.0% 0: 0.0% 0: 0.0%
1513499
cp/class.c:7257 (build_vtbl_initializer) 36835968:14.7% 0: 0.0% 0: 0.0% 0: 0.0%
1534832
tree.c:966 (build_constructor_from_list) 28488: 0.0% 0: 0.0% 38444792:40.2%
9123452:34.6% 7212
convert.c:457 (convert_to_integer) 45943936:18.4% 0: 0.0% 0: 0.0% 0: 0.0%
1435748
cp/class.c:1835 (dfs_find_final_overrider_1) 52468296:21.0% 0: 0.0% 0: 0.0% 0:
0.0% 2186179
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19614