public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug libgcj/17979] New: Binary Compatibility: could resolve String references while defining class @ 2004-10-13 19:52 tromey at gcc dot gnu dot org 2004-10-13 21:43 ` [Bug libgcj/17979] " pinskia at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: tromey at gcc dot gnu dot org @ 2004-10-13 19:52 UTC (permalink / raw) To: java-prs In defineclass.cc, we do a pass over the constant pool and turn JV_CONSTANT_String references into _Jv_Utf8Const objects. Later, during linking, these are turned into real String instances. We could just as easily create real Strings when defining the class and reduce the amount of work to be done during linking. On the one hand this involves more space overhead for classes which are not used (most string constants are ASCII, which is represented more compactly in a Utf8Const). On the other hand, the utf8const is garbage after linking, some String constants are common (these are always interned, so these would be shared), and usually string constants are short anyway (so the savings is probably not significant). -- Summary: Binary Compatibility: could resolve String references while defining class Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tromey 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=17979 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/17979] Binary Compatibility: could resolve String references while defining class 2004-10-13 19:52 [Bug libgcj/17979] New: Binary Compatibility: could resolve String references while defining class tromey at gcc dot gnu dot org @ 2004-10-13 21:43 ` pinskia at gcc dot gnu dot org 2004-10-13 21:46 ` tromey at gcc dot gnu dot org 2004-10-14 14:08 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-13 21:43 UTC (permalink / raw) To: java-prs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-13 21:43 ------- Is this related to PR 1259 at all? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17979 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/17979] Binary Compatibility: could resolve String references while defining class 2004-10-13 19:52 [Bug libgcj/17979] New: Binary Compatibility: could resolve String references while defining class tromey at gcc dot gnu dot org 2004-10-13 21:43 ` [Bug libgcj/17979] " pinskia at gcc dot gnu dot org @ 2004-10-13 21:46 ` tromey at gcc dot gnu dot org 2004-10-14 14:08 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: tromey at gcc dot gnu dot org @ 2004-10-13 21:46 UTC (permalink / raw) To: java-prs ------- Additional Comments From tromey at gcc dot gnu dot org 2004-10-13 21:46 ------- I think PR 1259 relates to deficiencies in the compiler, not the runtime (or at least not this part of the runtime). This PR refers to a minor possible optimization when defining an interpreted class; it doesn't affect whether or when other classes are initialized. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17979 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/17979] Binary Compatibility: could resolve String references while defining class 2004-10-13 19:52 [Bug libgcj/17979] New: Binary Compatibility: could resolve String references while defining class tromey at gcc dot gnu dot org 2004-10-13 21:43 ` [Bug libgcj/17979] " pinskia at gcc dot gnu dot org 2004-10-13 21:46 ` tromey at gcc dot gnu dot org @ 2004-10-14 14:08 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-14 14:08 UTC (permalink / raw) To: java-prs -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-10-14 14:07:57 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17979 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-14 14:08 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-10-13 19:52 [Bug libgcj/17979] New: Binary Compatibility: could resolve String references while defining class tromey at gcc dot gnu dot org 2004-10-13 21:43 ` [Bug libgcj/17979] " pinskia at gcc dot gnu dot org 2004-10-13 21:46 ` tromey at gcc dot gnu dot org 2004-10-14 14:08 ` pinskia at gcc dot gnu dot 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).