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

    • b04

      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).

            chagedorn Christian Hagedorn
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: