public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/18086] New: automate marking of Class object
@ 2004-10-20 18:25 tromey at gcc dot gnu dot org
  2004-10-20 18:27 ` [Bug libgcj/18086] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-20 18:25 UTC (permalink / raw)
  To: java-prs

Currently we have hand-written code to mark Class instances.
This is slow and is also bug-prone; we find problems in this
code with annoying frequency.  It may also be related to PR 16902.

It doesn't look hard to automate marking of Class.  Here is a plan:

* Rearrange fields of Class so that all marked fields are early,
  with non-marked fields later.

* Change gcj to emit a GC descriptor for Class.  Have the compiler
  abort() if a change is made to Class that causes us not to be able
  to make a GC descriptor.

* For all objects referenced by Class that are dynamically allocated,
  introduce a new descriptor kind at runtime.  Change how these objects
  are allocated, so that they will be marked by the GC and not by
  special code as a side effect of marking the class.  This should help
  the problem that Anthony noticed (see email message linked from PR 16902)

-- 
           Summary: automate marking of Class object
           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=18086


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

* [Bug libgcj/18086] automate marking of Class object
  2004-10-20 18:25 [Bug libgcj/18086] New: automate marking of Class object tromey at gcc dot gnu dot org
@ 2004-10-20 18:27 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-20 18:27 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-20 18:27 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-20 18:27:53
               date|                            |


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


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

* [Bug libgcj/18086] automate marking of Class object
       [not found] <bug-18086-360@http.gcc.gnu.org/bugzilla/>
@ 2006-02-08 20:13 ` tromey at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-02-08 20:13 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2006-02-08 20:13 -------
Note that this bug may not be as severe now that we've simplified
Class marking in _Jv_MarkObj.


-- 


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


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

end of thread, other threads:[~2006-02-08 20:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-20 18:25 [Bug libgcj/18086] New: automate marking of Class object tromey at gcc dot gnu dot org
2004-10-20 18:27 ` [Bug libgcj/18086] " pinskia at gcc dot gnu dot org
     [not found] <bug-18086-360@http.gcc.gnu.org/bugzilla/>
2006-02-08 20: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).