This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


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

Re: [PATCH] New C++ ABI compatibility changes.


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 ]



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