Details
-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
-
None
Description
ConcreteResourceRegistration.registerAdditionalRuntimePackages(pkgs...) method acquires the write lock first, then iterates through all passed pkgs, and release the lock.
When the passed pkgs is empty, we should be able to skip all these including locking and unlocking to save locking overhead and avoid blocking the current thread.
During a WildFly standalone server start, there are 110 invocations of this method, and among them about half have empty params.