ModuleLayer.Controller strongly references Module

Michał Kłeczek michal at kleczek.org
Wed Nov 24 12:15:56 UTC 2021


Hi Alan,

Attached is a first draft of the patch.
Controller is created upon ML construction and returned from static ML.defineModules methods.

> On 22 Nov 2021, at 21:37, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>> 
> Assuming it's not exposed, and that there is no reference to the ML.Controller for the boot layer,

I am not sure I understand this. Do you mean ML.controller should be null for the boot layer?
This would require null check in static ML.defineModules methods to return new Controller for the boot layer (done only once during system init).


-- Michal
-------------- next part --------------



More information about the jigsaw-dev mailing list