This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: Interface dispatch table optimization
- From: Per Bothner <per at bothner dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Thu, 09 Feb 2006 08:51:32 -0800
- Subject: Re: Patch: Interface dispatch table optimization
- References: <43EB663F.90204@redhat.com>
Bryce McKinlay wrote:
It turns out that we can allocate interface dispatch (jclass->idt)
tables as a single struct, rather than a struct that contains a pointer
to another table. This means that only one idt allocation is required
for each class/interface, and _Jv_AllocBytes can be used to reduce the
memory that needs to be scanned by the GC.
We need a writeup of how interface dispatch works, either in the
internals manual or the wiki. I don't find it. Is there one? If so,
could you update it? If since you have this fresh in your mind, could
you do a write-up?
Not only for documentation, but it should also be done in a way that
counts as "publication" in terms of patent prior-art.
--
--Per Bothner
per@bothner.com http://per.bothner.com/