This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: Class.h and Class.java both define zero-arg constructor



Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:

> >How about the line

> >   ((_Jv_Self *)this)->vtable_ptr -= 2 * sizeof (void *);

> >is that cruft, or will I run into problems with it missing?

> It is definatly needed if the C++ constructor is being called. If the 
> Java constructor gets called, the vtable pointer might not get set like 
> C++ expects, so it may be neccessary to add something like

Could this be a plausible explanation why my binaries segfaults on
startup? (JvRunMain manipulates class objects...)

  - a


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