This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/13021] New: GCJ Boehm descriptor may be incorrect if alignment != sizeof(void*)
- From: "john at atrove dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2003 12:25:09 -0000
- Subject: [Bug java/13021] New: GCJ Boehm descriptor may be incorrect if alignment != sizeof(void*)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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