Skip to content

Expansion of ConcurrentHashMap in ExtensionLoader #5797

@caixunshi

Description

@caixunshi
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: master
  • Operating System version: windows
  • Java version: 1.8

In ExtensionLoader, EXTENSION INSTANCES is a ConcurrentHashMap with a default size, and the extension class provided in Dubbo has exceeded 16.
Start the program, it will expand at least twice. I think it is more appropriate to add an initial size of 64 here.
Other places where ConcurrentHashMap is used should also pay attention to a suitable initial size

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions