This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/13021] New: GCJ Boehm descriptor may be incorrect if alignment != sizeof(void*)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]