Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6219

Skip when empty params in ConcreteResourceRegistration.registerAdditionalRuntimePackages method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 20.0.0.Beta6, 20.0.0.Final
    • None
    • None
    • None

      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.

            cfang@redhat.com Cheng Fang
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: