On 05/11/2012 04:15 AM, Kristian Rosenvold wrote:
I have been considering fixing classworlds and m3 core to exploit the
parallel classloading abilities of java 7. The idea would be to load
plugin classloaders in parallel to increase performance.

You can load classes in multiple threads in parallel in Java 6 too. No special trick, just fork some threads to initialize your plugins and join to wait for everything to be ready. Some of the initialization will involve class loading, and some will involve other tasks.

AFAIK the only change in Java 7 is that locking can be modified in a way that would avoid deadlocks in module systems which permit cyclic dependencies, such as OSGi. But that should never happen for Maven plugins anyway - the dependency graph should be a DAG.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to