in J7 the lock is done by loaded class where it was synchronized on the classloader itself before.
- Romain 2012/5/22 Jesse Glick <[email protected]> > 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: > [email protected].**org<[email protected]> > For additional commands, e-mail: [email protected] > >
