------- Comment #5 from rob1weld at aol dot com 2009-01-14 17:24 ------- Created an attachment (id=17099) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17099&action=view) Memory Usage Report for "classpath/tools/.libs/libgcj_tools_la-tools.o"
(In reply to comment #4) > (In reply to comment #3) > > With 1400M (and 512M swap) it dies here: > >... > > -g -O2 -m64 -MT classpath/tools/libgcj_tools_la-tools.lo -MD -MP -MF > > classpath/tools/.deps/libgcj_tools_la-tools.Tpo -c > > classpath/tools/tools.zip > > -fPIC -o classpath/tools/.libs/libgcj_tools_la-tools.o > > jc1: out of memory allocating 4072 bytes after a total of 380526592 bytes > > ... I manually compiled the one file and added these commands: -v -fmem-report -ftime-report -fpre-ipa-mem-report -fpost-ipa-mem-report # cd /usr/share/src/gcc_build/i386-pc-solaris2.11/amd64/libjava # /usr/share/src/gcc_build/gcc/gcj -B/usr/share/src/gcc_build/i386-pc-solaris2.11/amd64/libjava/ -B/usr/share/src/gcc_build/gcc/ -ffloat-store -fomit-frame-pointer -Usun -fclasspath= -fbootclasspath=../../../../gcc_trunk/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -findirect-dispatch -fno-indirect-classes -fsource-filename=/usr/share/src/gcc_build/i386-pc-solaris2.11/amd64/libjava/classpath/tools/all-classes.lst -g -O2 -v -fmem-report -ftime-report -fpre-ipa-mem-report -fpost-ipa-mem-report -m64 -MT classpath/tools/libgcj_tools_la-tools.lo -MD -MP -MF classpath/tools/.deps/libgcj_tools_la-tools.Tpo -c classpath/tools/tools.zip -fPIC -o classpath/tools/.libs/libgcj_tools_la-tools.o 2>&1 | tee /usr/share/src/gcc_build/test_gcc_memory_for_libgcj_tools_compile.result.txt Notice: 1. The report of the "Memory still allocated at the end of the compilation process". 2. The line "??? tree nodes created" 3. Notice this section, bad news followed by an empty section: Heap vectors: source location Leak Peak Times ------------------------------------------------------- gimplify.c:1593 (gimplify_switch_expr) 0: 0.0% 40 123: 0.0% gimplify.c:238 (gimple_push_bind_expr) 0: 0.0% 40 4250: 1.6% tree-eh.c:637 (record_in_goto_queue_label) 0: 0.0% 48 13: 0.0% gimple-low.c:113 (lower_function_body) 0: 0.0% 72 4251: 1.6% gimplify.c:1951 (gimplify_compound_lval) 0: 0.0% 144 260891:96.5% gimplify.c:239 (gimple_push_bind_expr) 0: 0.0% 400 139: 0.1% gimplify.c:1670 (gimplify_case_label_expr) 0: 0.0% 1984 128: 0.0% function.c:4107 (push_struct_function) 24: 0.2% 24 1: 0.0% java/class.c:1797 (make_class_data) 15068:99.8% 16696 598: 0.2% Total 15092 270394 source location Leak Peak Times ------------------------------------------------------- ------------------------------------------------------- 4. Lots in the "Garbage", "Leak" and "Times" piles: source location Garbage Freed Leak Overhead Times ------------------------------------------------------- ... source location Garbage Freed Leak Overhead Times ------------------------------------------------------- ... tree-ssa-operands.c:499 (ssa_operand_alloc) 0: 0.0% 85135158:32.8% 0: 0.0% 2324278: 7.2% 11654 ... gimplify.c:522 (create_tmp_var_raw) 43432400: 6.9% 0: 0.0% 1482184: 2.1% 0: 0.0% 510393 tree-ssanames.c:141 (make_ssa_name_fn) 57218392: 9.1% 0: 0.0% 1459640: 2.0% 0: 0.0% 1047822 Total 631644212 259687118 72135253 32455003 24761794 source location Garbage Freed Leak Overhead Times ------------------------------------------------------- 5. Slow too: Execution times (seconds) ... TOTAL : 581.18 56.35 707.22 909163 kB Thanks Rob -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38717