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

Inline GenericTaskQueue::initialize() to the constructor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • None
    • 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

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

              Created:
              Updated:
              Resolved: