This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Re: [PATCH] New C++ ABI compatibility changes.
- To: apbianco at cygnus dot com
- Subject: Re: [PATCH] New C++ ABI compatibility changes.
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Mon, 15 Jan 2001 23:05:22 +1300
- CC: java-patches at sources dot redhat dot com
- References: <200101150808.AAA16160@deliverance.cygnus.com>
Alexandre Petit-Bianco wrote:
> + // C++ ctors are fixing the vtbl in a way that doesn't fit Java.
> + // We can fix the C++ compiler, or we can hack our runtime. What's
> + // below fix the vtable so that it starts at -2.
> + void *p = ((void **)this)[0];
> + ((void **)this)[0] = (void *)((char *)p-2*sizeof (void *));
Will this work on IA-64? Don't IA-64 vtables actually have two words per method/entry under
the new ABI?
regards
[ bryce ]