Instrumentation.redefineModule -- extraPackages argument?

Jochen Theodorou blackdrag at gmx.org
Sat Mar 11 13:25:42 UTC 2017


On 11.03.2017 12:13, Alan Bateman wrote:
[...]
> It doesn't having to be a new/different class loader, there is no issue
> creating layers of modules where the modules are defined to the same
> class loader as modules in other layers.

ok, missed that information, very good to know.

>> That will backfire. Does JDK9 even have no notion of removing a layer
>> and garbage collection on it?
> If they are no references then a layer and the modules in the layer will
> be GC'ed. There are several stress tests for this.

and that is good to know as well. Thanks Alan ;)

bye Jochen



More information about the jigsaw-dev mailing list