This is the mail archive of the java-patches@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]

Re: Kill a static constructor in boehm-gc




On Mon, 22 Oct 2001, Bryce McKinlay wrote:
> With this patch LD_PROFILE=libgcj.so.2 finally doesn't crash! This means 
> we can profile libgcj!!

That's great news.  So libgcj is finally a well-behaved DSO...

> Well, nearly, since unfortunatly LD_PROFILE  doesn't understand virtual
> calls.

Why is that?  Do virtual calls not involve the PLT?

> I'm guessing this might be easy to fix 
> however if RTH adds the generic stack unwind facility to GCC that he was 
> talking about a while back?

Do you have a pointer to this?  I don't recall the discussion.

Another approach could be to replace the current vtable with a jump table.
Each slot could jump to a ordinary function call.  That would also help
with lazy binding (i.e. startup overhead).  Someone on the GCC list
dismissed this approach for C++, since it would prevent meaningful
comparison of method pointers.  But that doesn't matter to gcj or Java.

Jeff


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