public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/19325] New: Invoking gcj -C on a list of source files consumes insane amount of memory
@ 2005-01-08 15:27 mark at gcc dot gnu dot org
  2005-01-08 15:59 ` [Bug java/19325] " pinskia at gcc dot gnu dot org
  2005-06-19 14:51 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 5+ messages in thread
From: mark at gcc dot gnu dot org @ 2005-01-08 15:27 UTC (permalink / raw)
  To: java-prs

When invoking gcj -C on a list of source files (either on the command line or
with @file) jc1 consumes a lot of memory.

Example. Go into the libjava directory in gcc and do:
gcj -Wno-deprecated -C -d /tmp $(find javax -name *.java)

This will consume more than 200MB of memory.

We use gcj -C @classes where classes are all the classes in GNU Classpath and
this  easily consumes more than 500MB. We work around this by splitting the
@classes file in smaller groups. This didn't work anymore for the new locale
support we added which consists of about 250 generated source files. We had to
rewrite the source file generator to get the memory use of gcj down enough to be
able to compile on machines with 500MB or less. (The rewrite consisted of
pushing most data into String constants and only at runtime parse and extract
those instead of writing out the whole datastructure generation in code.)

It looks like the byte code and trees generated for methods isn't released after
writing out the .class file.

-- 
           Summary: Invoking gcj -C on a list of source files consumes
                    insane amount of memory
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mark at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19325


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/19325] Invoking gcj -C on a list of source files consumes insane amount of memory
  2005-01-08 15:27 [Bug java/19325] New: Invoking gcj -C on a list of source files consumes insane amount of memory mark at gcc dot gnu dot org
@ 2005-01-08 15:59 ` pinskia at gcc dot gnu dot org
  2005-06-19 14:51 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-08 15:59 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |memory-hog


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19325


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/19325] Invoking gcj -C on a list of source files consumes insane amount of memory
  2005-01-08 15:27 [Bug java/19325] New: Invoking gcj -C on a list of source files consumes insane amount of memory mark at gcc dot gnu dot org
  2005-01-08 15:59 ` [Bug java/19325] " pinskia at gcc dot gnu dot org
@ 2005-06-19 14:51 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 14:51 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19325


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/19325] Invoking gcj -C on a list of source files consumes insane amount of memory
       [not found] <bug-19325-8172@http.gcc.gnu.org/bugzilla/>
@ 2012-01-10 15:32 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-10 15:32 UTC (permalink / raw)
  To: java-prs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19325

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-10 15:29:54 UTC ---
More than 200MB is no longer insane and the issue might have been fixed. 
Closing.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug java/19325] Invoking gcj -C on a list of source files consumes insane amount of memory
       [not found] <bug-19325-3639@http.gcc.gnu.org/bugzilla/>
@ 2008-12-26 11:49 ` tkoenig at gcc dot gnu dot org
  0 siblings, 0 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-12-26 11:49 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from tkoenig at gcc dot gnu dot org  2008-12-26 11:49 -------
This bug hasn't been active for a long time.

Is this still an issue?


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19325


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-10 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-08 15:27 [Bug java/19325] New: Invoking gcj -C on a list of source files consumes insane amount of memory mark at gcc dot gnu dot org
2005-01-08 15:59 ` [Bug java/19325] " pinskia at gcc dot gnu dot org
2005-06-19 14:51 ` pinskia at gcc dot gnu dot org
     [not found] <bug-19325-3639@http.gcc.gnu.org/bugzilla/>
2008-12-26 11:49 ` tkoenig at gcc dot gnu dot org
     [not found] <bug-19325-8172@http.gcc.gnu.org/bugzilla/>
2012-01-10 15:32 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).