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

Add default constructor to VectorSet to use Thread::current()->resource_area() as arena by default

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b04

      Description

      The pattern

       Arena *a = Thread::current()->resource_area();
       VectorSet visited(a);

      can be found quite often in the code. We could clean this up by adding a default constructor to VectorSet which uses Thread::current()->resource_area() as arena by default (as already done, for example, for Node_List).

        Attachments

          Activity

            People

            Assignee:
            chagedorn Christian Hagedorn
            Reporter:
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: