Minor performance improvement to java.lang.ModuleLayer.findModule(String name)

Alan Bateman Alan.Bateman at oracle.com
Thu Dec 7 12:49:56 UTC 2017


On 07/12/2017 10:00, Andrej Golovnin wrote:
> Hi all,
>
> when we try to find a module which is not in the current layer, then
> we access the map 'nameToModule' in the parent layers two times in the
> lines 849-850:
>
The change looks okay (I'm pretty sure it was just an oversight as this 
code changed several times during JDK 9).

-Alan


More information about the jigsaw-dev mailing list