Java Patch: Merge UTF-8 contants at link time

Tom Tromey tromey@redhat.com
Thu Sep 13 14:56:00 GMT 2001


>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:

Anthony> libgcj.so is almost 300k smaller on IA-32 Linux with this patch.

Wow, that's a lot.

Anthony> +    int flags = SECTION_OVERRIDE 
Anthony> +      | SECTION_MERGE | (SECTION_ENTSIZE & (name_len + 5));

A nit: according to GNU coding standards this should read:

    int flags = (SECTION_OVERRIDE 
                 | SECTION_MERGE | (SECTION_ENTSIZE & (name_len + 5)));

Tom



More information about the Java-patches mailing list