Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8315454

Add a way to create an immutable snapshot of a BitSet

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • None
    • core-libs
    • b14

    Description

      It is possible to provide an immutable BitSet backed by a `@Stable` array, enabling constant-folding optimizations.

      The following classes in the JDK would potentially benefit from such an addition:

      ShapedTranslucentWindowClick (1)
      PoolReader (6)
      URLEncoder (1)
      JMXServiceURL (5)
      TableView (1)
      HtmlTree (2)

      Parentheses indicate the number of `static final` usages where an immutable BitSet might be used.

      Attachments

        Issue Links

          Activity

            People

              pminborg Per-Ake Minborg
              pminborg Per-Ake Minborg
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: