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]
Other format: [Raw text]

Re: [PATCH] libffi .eh_frame tweaks


>>>>> "Anthony" == Anthony Green <green at redhat dot com> writes:

Anthony> Thanks Jakub.  I understand that this can result in huge
Anthony> performance wins, but I don't understand enough to understand
Anthony> why.  Is it just a matter of eliminating some relocation
Anthony> processing at startup?

It only affects programs that do a lot of stack crawling -- lots of
exception handling, say.  My understanding is that this patch lets the
linker put all the libgcj dwarf2 data into a read-only section, and
that in turn lets libgcc use a binary search to map the PC to the
correct descriptor.  Without the patch we have to use a linear search.

Tom


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