Serial: Use more concrete type for TenuredGeneration::_the_space

XMLWordPrintable

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

      ```
      class TenuredGeneration: public Generation {
        ContiguousSpace* _the_space; // Actual space holding objects
      }


        _the_space = new TenuredSpace(_bts, MemRegion(bottom, end));
      ```

      `_the_space` can be its actual type, instead of its super type. Besides, it's logical that `TenuredGeneration` holds a pointer to `TenuredSpace`.

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

              Created:
              Updated:
              Resolved: