public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/17488] Binary compatibility: must ensure static method's class remains live
2004-09-14 22:13 [Bug java/17488] New: Binary compatibility: must ensure static method's class remains live tromey at gcc dot gnu dot org
@ 2004-09-14 22:13 ` pinskia at gcc dot gnu dot org
2004-09-14 22:13 ` tromey at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-14 22:13 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-09-14 22:13:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17488
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug java/17488] New: Binary compatibility: must ensure static method's class remains live
@ 2004-09-14 22:13 tromey at gcc dot gnu dot org
2004-09-14 22:13 ` [Bug java/17488] " pinskia at gcc dot gnu dot org
2004-09-14 22:13 ` tromey at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-14 22:13 UTC (permalink / raw)
To: java-prs
At the moment, a reference to a static method won't cause the
method's class to be considered as live. This can lead to
incorrect collection of the class. The fix is to somehow
arrange for this class to be marked.
For static fields this is handled because we emit explicit
_Jv_InitClass calls for the field's class; the class reference
ends up in the constant pool and is marked there.
One potential fix would be to move class initialization calls
for static methods to the caller (they are now in the callee).
This might be difficult (there are many calls from C++, for instance).
--
Summary: Binary compatibility: must ensure static method's class
remains live
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
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=17488
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug java/17488] Binary compatibility: must ensure static method's class remains live
2004-09-14 22:13 [Bug java/17488] New: Binary compatibility: must ensure static method's class remains live tromey at gcc dot gnu dot org
2004-09-14 22:13 ` [Bug java/17488] " pinskia at gcc dot gnu dot org
@ 2004-09-14 22:13 ` tromey at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-14 22:13 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |12725
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17488
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-09-14 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14 22:13 [Bug java/17488] New: Binary compatibility: must ensure static method's class remains live tromey at gcc dot gnu dot org
2004-09-14 22:13 ` [Bug java/17488] " pinskia at gcc dot gnu dot org
2004-09-14 22:13 ` tromey 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).