JarFile and ZipFile lock for just about anything. EAP deployment iterates many shared modules, all of which are backed by JAR files. Deploying many archives in parallel can cause massive contention on these JAR files from iteration operations. We don't need to iterate the JarFile every time; we can just grab a snapshot copy of the list of regular files in the JAR and traverse that instead.
Upstream https://issues.jboss.org/browse/MODULES-284
A speed of deploying was increased -> Verified with EAP 6.4.16.CP.CR1 The fix causes increase of memory usage by cca 10MB.
Released on June 20 2017 as part of the EAP 6.4.16 maintenance release.