I've been doing lots of modularization work, but I'm not quite ready to check it in yet. I've now split the class library assembly into ten assemblies and I've got "shared class loader" support working (at least for the core class library scenario).
I've been positively surprised by how many scenarios can be supported while only loading IKVM.OpenJDK.Core.dll. As the graph below shows, it has more (necessarily circular) dependencies than I would like, but for a number of scenarios I've carefully tweaked the set of classes in Core to enable lazy loading the dependencies only when they are really needed.
I'm not yet ready to commit to supported "Core-only" scenarios, but here's a flavor of some things I've been able to do:
- Running "Hello, World!" in dynamic mode
- File I/O & Socket I/O (both classic and nio)
Packages included in Core:
Here is the assembly dependency graph (click the image to enlarge):
Here are the current assembly file sizes:
It's interesting to see that the total is slightly less than the previous size of IKVM.OpenJDK.ClassLibrary.dll (30,472,704).