Review request: exports runtime support + jdk modules converted to use exports

Alan Bateman Alan.Bateman at oracle.com
Thu Jun 9 05:48:05 PDT 2011


Mandy Chung wrote:
>
>
> I should also mention that the stored configuration ought be optimized
> for better performance in the future.  The stored configuration was
> changed to keep a list of remote classes rather than packages so that
> a module can export some public types of a package rather than the
> whole package. This approach increases the number of entries in a
> context's map to look up a supplying context for a given class quite
> significantly and thus the size of the stored configuration.
>
> For example, the number of remote entries of jdk.base module is increased
> from 224 to 4495 entries.  This also impacts all modules requiring
> jdk.base.
>
> With remote classes:
>   context +jdk.base
>     module jdk.base at 7-ea
>     remote (4495)
>
> Before (remote packages):
>   context +jdk.base
>     module jdk.base at 7-ea
>     remote (224)
>
> The size of jdk.base/7-ea/config is also increased from ~450K to 1.3M.
I've been looking at the webrev and was wondering about this. I grabbed 
the patch file from the webrev and did some tests and it looks like the 
stored configuration for simple tests jumps very significantly, like 
from about 6.5MB to 90MB. The reason is that java -m spends several 
seconds loading it. Are you seeing this too?

-Alan



More information about the jigsaw-dev mailing list