public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13021] New: GCJ Boehm descriptor may be incorrect if alignment  != sizeof(void*)
@ 2003-11-12 12:25 john at atrove dot com
  2005-07-13 13:34 ` [Bug java/13021] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: john at atrove dot com @ 2003-11-12 12:25 UTC (permalink / raw)
  To: gcc-bugs

The boehm descriptor generated by GCJ may be incorrect if the alignment is not 
the same as the sizeof(void*).  This is the case with the m68k, where the 
aligment is 16 bits, whilst a void* takes 32 bits.  The problem is that the 
boehm calualation truncates the descriptor, causing the boehm garbage 
collector to miss pointers, if a bitmap descriptor is generated and all 
pointers are not aligned to sizeof(void*).  If all the fields are not aligned 
to sizeof(void*), then a procedure descriptor should be generated.

-- 
           Summary: GCJ Boehm descriptor may be incorrect if alignment  !=
                    sizeof(void*)
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: john at atrove dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-cygwin
GCC target triplet: m68k-unknown-coff


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


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

* [Bug java/13021] GCJ Boehm descriptor may be incorrect if alignment  != sizeof(void*)
  2003-11-12 12:25 [Bug java/13021] New: GCJ Boehm descriptor may be incorrect if alignment != sizeof(void*) john at atrove dot com
@ 2005-07-13 13:34 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13 13:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-13 13:31 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   GCC host triplet|i686-pc-cygwin              |
 GCC target triplet|m68k-unknown-coff           |m68k-*-coff
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-13 13:31:57
               date|                            |
            Summary|GCJ Boehm descriptor may be |GCJ Boehm descriptor may be
                   |incorrect if alignment  !=  |incorrect if alignment  !=
                   |sizeof(void*)               |sizeof(void*)


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


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

end of thread, other threads:[~2005-07-13 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-12 12:25 [Bug java/13021] New: GCJ Boehm descriptor may be incorrect if alignment != sizeof(void*) john at atrove dot com
2005-07-13 13:34 ` [Bug java/13021] " 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).