Inline GenericTaskQueue::initialize() to the constructor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • gc
    • b11

      All callers of `GenericTaskQueue::initialize()` has the following pattern:

      ```
      q = new GenericTaskQueue();
      q->initialize();
      ```

      We can inline `initialize` to the constructor; it has two advantages:

      1. simplifying the caller logic; just call the constructor
      2. matching the alloc/free pair with the constructor/destructor pair

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: