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] GCJ Boehm descriptor may be incorrect if alignment != sizeof(void*)



------- Comment #2 from tromey at gcc dot gnu dot org  2006-04-12 17:42 -------
I don't have a convenient way to test a fix for this.
But it does not look very hard to fix... just adding
an extra check in boehm.c:mark_reference_fields.

Note that the corresponding code in libgcj already seems
to handle this case:

              // If we run into a weird situation, we bail.
              if (off % sizeof (void *) != 0)
                return (void *) (GCJ_DEFAULT_DESCR);


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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]