Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1575

View members should be always unmodifiable

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 3.3
    • 3.1, 3.2
    • None

    Description

      Right now the members list inside of the View is mutable. Everytime someone calls getMembers() it creates another Collections.unmodifiableList.

      In my opinion, in the View constructor, members should be a final Collections.unmodifiableList from the start. This would save GC throughput on all of the wrapper objects.

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            graywatson_jira Gray Watson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: