From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26101 invoked by alias); 12 Apr 2006 17:42:43 -0000 Received: (qmail 26086 invoked by uid 48); 12 Apr 2006 17:42:43 -0000 Date: Wed, 12 Apr 2006 17:42:00 -0000 Message-ID: <20060412174243.26085.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/13021] GCJ Boehm descriptor may be incorrect if alignment != sizeof(void*) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "tromey at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q2/txt/msg00090.txt.bz2 List-Id: ------- 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